← Learn
Safe
jq --slurpfile schema schema.json '. as $doc | $schema[0].required | all(. as $k | $doc | has($k))' payload.json

cross-platform · bash · Expert

--slurpfile reads a whole JSON file into an array variable. Both paths are fixed files in the repository and the filter only answers true…

The full explanation and danger signals for this pack are part of Pro.

Think you can spot these under time pressure?

Start Training

More CI/CD