File tree Expand file tree Collapse file tree 6 files changed +312
-0
lines changed Expand file tree Collapse file tree 6 files changed +312
-0
lines changed Original file line number Diff line number Diff line change 978978 "valid" : false
979979 }
980980 ]
981+ },
982+ {
983+ "description" : " $id with file URI should still resolve pointers - *nix" ,
984+ "schema" : {
985+ "$id" : " file://folder/file.json" ,
986+ "$defs" : {
987+ "foo" : {
988+ "type" : " number"
989+ }
990+ },
991+ "$ref" : " #/$defs/foo"
992+ },
993+ "tests" : [
994+ {
995+ "description" : " number is valid" ,
996+ "data" : 1 ,
997+ "valid" : true
998+ },
999+ {
1000+ "description" : " non-number is invalid" ,
1001+ "data" : " a" ,
1002+ "valid" : false
1003+ }
1004+ ]
1005+ },
1006+ {
1007+ "description" : " $id with file URI should still resolve pointers - windows" ,
1008+ "schema" : {
1009+ "$id" : " file:///c:/folder/file.json" ,
1010+ "$defs" : {
1011+ "foo" : {
1012+ "type" : " number"
1013+ }
1014+ },
1015+ "$ref" : " #/$defs/foo"
1016+ },
1017+ "tests" : [
1018+ {
1019+ "description" : " number is valid" ,
1020+ "data" : 1 ,
1021+ "valid" : true
1022+ },
1023+ {
1024+ "description" : " non-number is invalid" ,
1025+ "data" : " a" ,
1026+ "valid" : false
1027+ }
1028+ ]
9811029 }
9821030]
Original file line number Diff line number Diff line change 978978 "valid" : false
979979 }
980980 ]
981+ },
982+ {
983+ "description" : " $id with file URI should still resolve pointers - *nix" ,
984+ "schema" : {
985+ "$id" : " file://folder/file.json" ,
986+ "$defs" : {
987+ "foo" : {
988+ "type" : " number"
989+ }
990+ },
991+ "$ref" : " #/$defs/foo"
992+ },
993+ "tests" : [
994+ {
995+ "description" : " number is valid" ,
996+ "data" : 1 ,
997+ "valid" : true
998+ },
999+ {
1000+ "description" : " non-number is invalid" ,
1001+ "data" : " a" ,
1002+ "valid" : false
1003+ }
1004+ ]
1005+ },
1006+ {
1007+ "description" : " $id with file URI should still resolve pointers - windows" ,
1008+ "schema" : {
1009+ "$id" : " file:///c:/folder/file.json" ,
1010+ "$defs" : {
1011+ "foo" : {
1012+ "type" : " number"
1013+ }
1014+ },
1015+ "$ref" : " #/$defs/foo"
1016+ },
1017+ "tests" : [
1018+ {
1019+ "description" : " number is valid" ,
1020+ "data" : 1 ,
1021+ "valid" : true
1022+ },
1023+ {
1024+ "description" : " non-number is invalid" ,
1025+ "data" : " a" ,
1026+ "valid" : false
1027+ }
1028+ ]
9811029 }
9821030]
Original file line number Diff line number Diff line change 978978 "valid" : false
979979 }
980980 ]
981+ },
982+ {
983+ "description" : " $id with file URI should still resolve pointers - *nix" ,
984+ "schema" : {
985+ "$id" : " file://folder/file.json" ,
986+ "$defs" : {
987+ "foo" : {
988+ "type" : " number"
989+ }
990+ },
991+ "$ref" : " #/$defs/foo"
992+ },
993+ "tests" : [
994+ {
995+ "description" : " number is valid" ,
996+ "data" : 1 ,
997+ "valid" : true
998+ },
999+ {
1000+ "description" : " non-number is invalid" ,
1001+ "data" : " a" ,
1002+ "valid" : false
1003+ }
1004+ ]
1005+ },
1006+ {
1007+ "description" : " $id with file URI should still resolve pointers - windows" ,
1008+ "schema" : {
1009+ "$id" : " file:///c:/folder/file.json" ,
1010+ "$defs" : {
1011+ "foo" : {
1012+ "type" : " number"
1013+ }
1014+ },
1015+ "$ref" : " #/$defs/foo"
1016+ },
1017+ "tests" : [
1018+ {
1019+ "description" : " number is valid" ,
1020+ "data" : 1 ,
1021+ "valid" : true
1022+ },
1023+ {
1024+ "description" : " non-number is invalid" ,
1025+ "data" : " a" ,
1026+ "valid" : false
1027+ }
1028+ ]
9811029 }
9821030]
Original file line number Diff line number Diff line change 503503 "valid" : false
504504 }
505505 ]
506+ },
507+ {
508+ "description" : " id with file URI should still resolve pointers - *nix" ,
509+ "schema" : {
510+ "id" : " file://folder/file.json" ,
511+ "definitions" : {
512+ "foo" : {
513+ "type" : " number"
514+ }
515+ },
516+ "allOf" : [
517+ {
518+ "$ref" : " #/definitions/foo"
519+ }
520+ ]
521+ },
522+ "tests" : [
523+ {
524+ "description" : " number is valid" ,
525+ "data" : 1 ,
526+ "valid" : true
527+ },
528+ {
529+ "description" : " non-number is invalid" ,
530+ "data" : " a" ,
531+ "valid" : false
532+ }
533+ ]
534+ },
535+ {
536+ "description" : " id with file URI should still resolve pointers - windows" ,
537+ "schema" : {
538+ "id" : " file:///c:/folder/file.json" ,
539+ "definitions" : {
540+ "foo" : {
541+ "type" : " number"
542+ }
543+ },
544+ "allOf" : [
545+ {
546+ "$ref" : " #/definitions/foo"
547+ }
548+ ]
549+ },
550+ "tests" : [
551+ {
552+ "description" : " number is valid" ,
553+ "data" : 1 ,
554+ "valid" : true
555+ },
556+ {
557+ "description" : " non-number is invalid" ,
558+ "data" : " a" ,
559+ "valid" : false
560+ }
561+ ]
506562 }
507563]
Original file line number Diff line number Diff line change 813813 "valid" : false
814814 }
815815 ]
816+ },
817+ {
818+ "description" : " $id with file URI should still resolve pointers - *nix" ,
819+ "schema" : {
820+ "$id" : " file://folder/file.json" ,
821+ "definitions" : {
822+ "foo" : {
823+ "type" : " number"
824+ }
825+ },
826+ "allOf" : [
827+ {
828+ "$ref" : " #/definitions/foo"
829+ }
830+ ]
831+ },
832+ "tests" : [
833+ {
834+ "description" : " number is valid" ,
835+ "data" : 1 ,
836+ "valid" : true
837+ },
838+ {
839+ "description" : " non-number is invalid" ,
840+ "data" : " a" ,
841+ "valid" : false
842+ }
843+ ]
844+ },
845+ {
846+ "description" : " $id with file URI should still resolve pointers - windows" ,
847+ "schema" : {
848+ "$id" : " file:///c:/folder/file.json" ,
849+ "definitions" : {
850+ "foo" : {
851+ "type" : " number"
852+ }
853+ },
854+ "allOf" : [
855+ {
856+ "$ref" : " #/definitions/foo"
857+ }
858+ ]
859+ },
860+ "tests" : [
861+ {
862+ "description" : " number is valid" ,
863+ "data" : 1 ,
864+ "valid" : true
865+ },
866+ {
867+ "description" : " non-number is invalid" ,
868+ "data" : " a" ,
869+ "valid" : false
870+ }
871+ ]
816872 }
817873]
Original file line number Diff line number Diff line change 927927 "valid" : false
928928 }
929929 ]
930+ },
931+ {
932+ "description" : " $id with file URI should still resolve pointers - *nix" ,
933+ "schema" : {
934+ "$id" : " file://folder/file.json" ,
935+ "definitions" : {
936+ "foo" : {
937+ "type" : " number"
938+ }
939+ },
940+ "allOf" : [
941+ {
942+ "$ref" : " #/definitions/foo"
943+ }
944+ ]
945+ },
946+ "tests" : [
947+ {
948+ "description" : " number is valid" ,
949+ "data" : 1 ,
950+ "valid" : true
951+ },
952+ {
953+ "description" : " non-number is invalid" ,
954+ "data" : " a" ,
955+ "valid" : false
956+ }
957+ ]
958+ },
959+ {
960+ "description" : " $id with file URI should still resolve pointers - windows" ,
961+ "schema" : {
962+ "$id" : " file:///c:/folder/file.json" ,
963+ "definitions" : {
964+ "foo" : {
965+ "type" : " number"
966+ }
967+ },
968+ "allOf" : [
969+ {
970+ "$ref" : " #/definitions/foo"
971+ }
972+ ]
973+ },
974+ "tests" : [
975+ {
976+ "description" : " number is valid" ,
977+ "data" : 1 ,
978+ "valid" : true
979+ },
980+ {
981+ "description" : " non-number is invalid" ,
982+ "data" : " a" ,
983+ "valid" : false
984+ }
985+ ]
930986 }
931987]
You can’t perform that action at this time.
0 commit comments