Instantly share code, notes, and snippets.
d3dave/diffschema.sh
Created April 20, 2023 21:24- Star 0 (0) You must be signed in to star a gist
- Fork 0 (0) You must be signed in to fork a gist
-
Select an option
No results found
Learn more about clone URLs Clone this repository at <script src="https://gist.github.com/d3dave/0ad4e97cc6ab3cc8935c12cb3b2ae6a5.js"></script> - Save d3dave/0ad4e97cc6ab3cc8935c12cb3b2ae6a5 to your computer and use it in GitHub Desktop.
Select an option
No results found
Learn more about clone URLs Clone this repository at <script src="https://gist.github.com/d3dave/0ad4e97cc6ab3cc8935c12cb3b2ae6a5.js"></script> Save d3dave/0ad4e97cc6ab3cc8935c12cb3b2ae6a5 to your computer and use it in GitHub Desktop. Download ZIP Diff jsonschema Raw diffschema.sh 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 Show hidden 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 |