File tree Expand file tree Collapse file tree 1 file changed +0
-64
lines changed Expand file tree Collapse file tree 1 file changed +0
-64
lines changed Original file line number Diff line number Diff line change 644
644
"valid" : false
645
645
}
646
646
]
647
- },
648
- {
649
- "description" : " order of evaluation: $id and $ref" ,
650
- "schema" : {
651
- "$comment" : " $id must be evaluated before $ref to get the proper $ref destination" ,
652
- "$id" : " /ref-and-id1/base.json" ,
653
- "$ref" : " int.json" ,
654
- "$defs" : {
655
- "bigint" : {
656
- "$comment" : " canonical uri: /ref-and-id1/int.json" ,
657
- "$id" : " int.json" ,
658
- "maximum" : 10
659
- },
660
- "smallint" : {
661
- "$comment" : " canonical uri: /ref-and-id1-int.json" ,
662
- "$id" : " /ref-and-id1-int.json" ,
663
- "maximum" : 2
664
- }
665
- }
666
- },
667
- "tests" : [
668
- {
669
- "description" : " data is valid against first definition" ,
670
- "data" : 5 ,
671
- "valid" : true
672
- },
673
- {
674
- "description" : " data is invalid against first definition" ,
675
- "data" : 50 ,
676
- "valid" : false
677
- }
678
- ]
679
- },
680
- {
681
- "description" : " order of evaluation: $id and $anchor and $ref" ,
682
- "schema" : {
683
- "$comment" : " $id must be evaluated before $ref to get the proper $ref destination" ,
684
- "$id" : " /ref-and-id2/base.json" ,
685
- "$ref" : " #bigint" ,
686
- "$defs" : {
687
- "bigint" : {
688
- "$comment" : " canonical uri: /ref-and-id2/base.json/$defs/bigint; another valid uri for this location: /ref-and-id2/base.json#bigint" ,
689
- "$id" : " #bigint" ,
690
- "maximum" : 10
691
- },
692
- "smallint" : {
693
- "$comment" : " canonical uri: /ref-and-id2#/$defs/smallint; another valid uri for this location: /ref-and-id2/#bigint" ,
694
- "$id" : " /#bigint" ,
695
- "maximum" : 2
696
- }
697
- }
698
- },
699
- "tests" : [
700
- {
701
- "description" : " data is valid against first definition" ,
702
- "data" : 5 ,
703
- "valid" : true
704
- },
705
- {
706
- "description" : " data is invalid against first definition" ,
707
- "data" : 50 ,
708
- "valid" : false
709
- }
710
- ]
711
647
}
712
648
]
You can’t perform that action at this time.
0 commit comments