File tree Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Expand file tree Collapse file tree 1 file changed +36
-0
lines changed Original file line number Diff line number Diff line change 198
198
"valid" : false
199
199
}
200
200
]
201
+ },
202
+ {
203
+ "description" : " validation of JSON-pointers" ,
204
+ "schema" : {"format" : " json-pointer" },
205
+ "tests" : [
206
+ {
207
+ "description" : " a valid JSON-pointer" ,
208
+ "data" : " /foo/bar~0/baz~1/%a" ,
209
+ "valid" : true
210
+ },
211
+ {
212
+ "description" : " empty string is valid" ,
213
+ "data" : " " ,
214
+ "valid" : true
215
+ },
216
+ {
217
+ "description" : " / is valid" ,
218
+ "data" : " /" ,
219
+ "valid" : true
220
+ },
221
+ {
222
+ "description" : " not a valid JSON-pointer (~ not escaped)" ,
223
+ "data" : " /foo/bar~" ,
224
+ "valid" : false
225
+ },
226
+ {
227
+ "description" : " valid JSON-pointer with empty segment" ,
228
+ "data" : " /foo//bar" ,
229
+ "valid" : true
230
+ },
231
+ {
232
+ "description" : " valid JSON-pointer with the last empty segment" ,
233
+ "data" : " /foo/bar/" ,
234
+ "valid" : true
235
+ }
236
+ ]
201
237
}
202
238
]
You can’t perform that action at this time.
0 commit comments