File tree 5 files changed +152
-3
lines changed
5 files changed +152
-3
lines changed Original file line number Diff line number Diff line change 949
949
"valid" : true
950
950
}
951
951
]
952
- }
952
+ },
953
+ {
954
+ "description" : " ref with absolute-path-reference" ,
955
+ "schema" : {
956
+ "$id" : " http://example.com/ref/absref.json" ,
957
+ "$defs" : {
958
+ "a" : {
959
+ "$id" : " http://example.com/ref/absref/foobar.json" ,
960
+ "type" : " number"
961
+ },
962
+ "b" : {
963
+ "$id" : " http://example.com/absref/foobar.json" ,
964
+ "type" : " string"
965
+ }
966
+ },
967
+ "$ref" : " /absref/foobar.json"
968
+ },
969
+ "tests" : [
970
+ {
971
+ "description" : " a string is valid" ,
972
+ "data" : " foo" ,
973
+ "valid" : true
974
+ },
975
+ {
976
+ "description" : " an integer is invalid" ,
977
+ "data" : 12 ,
978
+ "valid" : false
979
+ }
980
+ ]
981
+ }
953
982
]
Original file line number Diff line number Diff line change 949
949
"valid" : true
950
950
}
951
951
]
952
- }
952
+ },
953
+ {
954
+ "description" : " ref with absolute-path-reference" ,
955
+ "schema" : {
956
+ "$id" : " http://example.com/ref/absref.json" ,
957
+ "$defs" : {
958
+ "a" : {
959
+ "$id" : " http://example.com/ref/absref/foobar.json" ,
960
+ "type" : " number"
961
+ },
962
+ "b" : {
963
+ "$id" : " http://example.com/absref/foobar.json" ,
964
+ "type" : " string"
965
+ }
966
+ },
967
+ "$ref" : " /absref/foobar.json"
968
+ },
969
+ "tests" : [
970
+ {
971
+ "description" : " a string is valid" ,
972
+ "data" : " foo" ,
973
+ "valid" : true
974
+ },
975
+ {
976
+ "description" : " an integer is invalid" ,
977
+ "data" : 12 ,
978
+ "valid" : false
979
+ }
980
+ ]
981
+ }
953
982
]
Original file line number Diff line number Diff line change 949
949
"valid" : true
950
950
}
951
951
]
952
+ },
953
+ {
954
+ "description" : " ref with absolute-path-reference" ,
955
+ "schema" : {
956
+ "$id" : " http://example.com/ref/absref.json" ,
957
+ "$defs" : {
958
+ "a" : {
959
+ "$id" : " http://example.com/ref/absref/foobar.json" ,
960
+ "type" : " number"
961
+ },
962
+ "b" : {
963
+ "$id" : " http://example.com/absref/foobar.json" ,
964
+ "type" : " string"
965
+ }
966
+ },
967
+ "$ref" : " /absref/foobar.json"
968
+ },
969
+ "tests" : [
970
+ {
971
+ "description" : " a string is valid" ,
972
+ "data" : " foo" ,
973
+ "valid" : true
974
+ },
975
+ {
976
+ "description" : " an integer is invalid" ,
977
+ "data" : 12 ,
978
+ "valid" : false
979
+ }
980
+ ]
952
981
}
953
982
]
Original file line number Diff line number Diff line change 782
782
"valid" : false
783
783
}
784
784
]
785
- }
785
+ },
786
+ {
787
+ "description" : " ref with absolute-path-reference" ,
788
+ "schema" : {
789
+ "$id" : " http://example.com/ref/absref.json" ,
790
+ "definitions" : {
791
+ "a" : {
792
+ "$id" : " http://example.com/ref/absref/foobar.json" ,
793
+ "type" : " number"
794
+ },
795
+ "b" : {
796
+ "$id" : " http://example.com/absref/foobar.json" ,
797
+ "type" : " string"
798
+ }
799
+ },
800
+ "allOf" : [
801
+ { "$ref" : " /absref/foobar.json" }
802
+ ]
803
+ },
804
+ "tests" : [
805
+ {
806
+ "description" : " a string is valid" ,
807
+ "data" : " foo" ,
808
+ "valid" : true
809
+ },
810
+ {
811
+ "description" : " an integer is invalid" ,
812
+ "data" : 12 ,
813
+ "valid" : false
814
+ }
815
+ ]
816
+ }
786
817
]
Original file line number Diff line number Diff line change 896
896
"valid" : true
897
897
}
898
898
]
899
+ },
900
+ {
901
+ "description" : " ref with absolute-path-reference" ,
902
+ "schema" : {
903
+ "$id" : " http://example.com/ref/absref.json" ,
904
+ "definitions" : {
905
+ "a" : {
906
+ "$id" : " http://example.com/ref/absref/foobar.json" ,
907
+ "type" : " number"
908
+ },
909
+ "b" : {
910
+ "$id" : " http://example.com/absref/foobar.json" ,
911
+ "type" : " string"
912
+ }
913
+ },
914
+ "allOf" : [
915
+ { "$ref" : " /absref/foobar.json" }
916
+ ]
917
+ },
918
+ "tests" : [
919
+ {
920
+ "description" : " a string is valid" ,
921
+ "data" : " foo" ,
922
+ "valid" : true
923
+ },
924
+ {
925
+ "description" : " an integer is invalid" ,
926
+ "data" : 12 ,
927
+ "valid" : false
928
+ }
929
+ ]
899
930
}
900
931
]
You can’t perform that action at this time.
0 commit comments