You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I want to validate JSON data against a schema and drop all non-defined additional attributes. I found the option/switch --remove-additional, but how do I get ajv-cli to output the processed data? I just always get "data.json valid". Thanks
The text was updated successfully, but these errors were encountered:
Ok, I see --changes outputs changes as JSON patch, so I can apply it a little bit complicated: ajv --changes=json --remove-additional=all -s schema.json -d data.json | tail -n +3 | patch-json merge data.json -
(tail is needed to skip the "data.json valid" and "changes:" lines)
Hi, I want to validate JSON data against a schema and drop all non-defined additional attributes. I found the option/switch
--remove-additional
, but how do I get ajv-cli to output the processed data? I just always get "data.json valid". ThanksThe text was updated successfully, but these errors were encountered: