Created
April 20, 2023 21:24
-
-
Save d3dave/0ad4e97cc6ab3cc8935c12cb3b2ae6a5 to your computer and use it in GitHub Desktop.
Diff jsonschema
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| pip3 install dollar-ref deepdiff | |
| dref -i $1 $1.dref.json | |
| jq .patternProperties $1.dref.json > $1.props.json | |
| dref -i $2 $2.dref.json | |
| jq .patternProperties $2.dref.json > $2.props.json | |
| deep diff $1.props.json $2.props.json |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment