File tree 3 files changed +76
-0
lines changed
3 files changed +76
-0
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "description" : " tree schema, extensible" ,
3
+ "$id" : " http://localhost:1234/tree.json" ,
4
+ "$dynamicAnchor" : " node" ,
5
+
6
+ "type" : " object" ,
7
+ "properties" : {
8
+ "data" : true ,
9
+ "children" : {
10
+ "type" : " array" ,
11
+ "items" : {
12
+ "$dynamicRef" : " #node"
13
+ }
14
+ }
15
+ }
16
+ }
Original file line number Diff line number Diff line change 441
441
"valid" : true
442
442
}
443
443
]
444
+ },
445
+ {
446
+ "description" : " strict-tree schema, guards against misspelled properties" ,
447
+ "schema" : {
448
+ "$id" : " http://localhost:1234/strict-tree.json" ,
449
+ "$dynamicAnchor" : " node" ,
450
+
451
+ "$ref" : " tree.json" ,
452
+ "unevaluatedProperties" : false
453
+ },
454
+ "tests" : [
455
+ {
456
+ "description" : " instance with misspelled field" ,
457
+ "data" : {
458
+ "children" : [{
459
+ "daat" : 1
460
+ }]
461
+ },
462
+ "valid" : false
463
+ },
464
+ {
465
+ "description" : " instance with correct field" ,
466
+ "data" : {
467
+ "children" : [{
468
+ "data" : 1
469
+ }]
470
+ },
471
+ "valid" : true
472
+ }
473
+ ]
444
474
}
445
475
]
Original file line number Diff line number Diff line change 441
441
"valid" : true
442
442
}
443
443
]
444
+ },
445
+ {
446
+ "description" : " strict-tree schema, guards against misspelled properties" ,
447
+ "schema" : {
448
+ "$id" : " http://localhost:1234/strict-tree.json" ,
449
+ "$dynamicAnchor" : " node" ,
450
+
451
+ "$ref" : " tree.json" ,
452
+ "unevaluatedProperties" : false
453
+ },
454
+ "tests" : [
455
+ {
456
+ "description" : " instance with misspelled field" ,
457
+ "data" : {
458
+ "children" : [{
459
+ "daat" : 1
460
+ }]
461
+ },
462
+ "valid" : false
463
+ },
464
+ {
465
+ "description" : " instance with correct field" ,
466
+ "data" : {
467
+ "children" : [{
468
+ "data" : 1
469
+ }]
470
+ },
471
+ "valid" : true
472
+ }
473
+ ]
444
474
}
445
475
]
You can’t perform that action at this time.
0 commit comments