We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d4771fd commit 74ebdaeCopy full SHA for 74ebdae
1 file changed
util/comparejson.py
@@ -0,0 +1,13 @@
1
+import json, sys
2
+import jsoncompare
3
+
4
+if len(sys.argv) != 3:
5
+ sys.exit('Error')
6
+json1 = json.loads(open(sys.argv[1],'r').read())
7
+json2 = json.loads(open(sys.argv[2],'r').read())
8
9
+(check,stack) = jsoncompare.are_same(json1,json2,True,True,["@schema"])
10
11
+if not check:
12
+ print stack
13
+ sys.exit(1)
0 commit comments