File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 94
94
"valid" : false
95
95
}
96
96
]
97
+ },
98
+ {
99
+ "description" : " Valid use of empty fragments in location-independent $id" ,
100
+ "schema" : {
101
+ "$ref" : " https://json-schema.org/draft/2019-09/schema"
102
+ },
103
+ "tests" : [
104
+ {
105
+ "description" : " Identifier name with absolute URI" ,
106
+ "data" : {
107
+ "$ref" : " http://localhost:1234/bar" ,
108
+ "$defs" : {
109
+ "A" : {
110
+ "$id" : " http://localhost:1234/bar#" ,
111
+ "type" : " integer"
112
+ }
113
+ }
114
+ },
115
+ "valid" : true
116
+ },
117
+ {
118
+ "description" : " Identifier name with base URI change in subschema" ,
119
+ "data" : {
120
+ "$id" : " http://localhost:1234/root" ,
121
+ "$ref" : " http://localhost:1234/nested.json#/$defs/B" ,
122
+ "$defs" : {
123
+ "A" : {
124
+ "$id" : " nested.json" ,
125
+ "$defs" : {
126
+ "B" : {
127
+ "$id" : " #" ,
128
+ "type" : " integer"
129
+ }
130
+ }
131
+ }
132
+ }
133
+ },
134
+ "valid" : true
135
+ }
136
+ ]
97
137
}
98
138
]
You can’t perform that action at this time.
0 commit comments