File tree 6 files changed +0
-192
lines changed
6 files changed +0
-192
lines changed Original file line number Diff line number Diff line change 56
56
"valid" : false
57
57
}
58
58
]
59
- },
60
- {
61
- "description" : " non-schema object containing an $anchor property" ,
62
- "schema" : {
63
- "$schema" : " https://json-schema.org/draft/next/schema" ,
64
- "$defs" : {
65
- "const_not_anchor" : {
66
- "const" : {
67
- "$anchor" : " not_a_real_anchor"
68
- }
69
- }
70
- },
71
- "if" : {
72
- "const" : " skip not_a_real_anchor"
73
- },
74
- "then" : true ,
75
- "else" : {
76
- "$ref" : " #/$defs/const_not_anchor"
77
- }
78
- },
79
- "tests" : [
80
- {
81
- "description" : " skip traversing definition for a valid result" ,
82
- "data" : " skip not_a_real_anchor" ,
83
- "valid" : true
84
- },
85
- {
86
- "description" : " const at const_not_anchor does not match" ,
87
- "data" : 1 ,
88
- "valid" : false
89
- }
90
- ]
91
59
}
92
60
]
Original file line number Diff line number Diff line change 49
49
"valid" : false
50
50
}
51
51
]
52
- },
53
- {
54
- "description" : " non-schema object containing an $id property" ,
55
- "schema" : {
56
- "$schema" : " https://json-schema.org/draft/next/schema" ,
57
- "$defs" : {
58
- "const_not_id" : {
59
- "const" : {
60
- "$id" : " not_a_real_id"
61
- }
62
- }
63
- },
64
- "if" : {
65
- "const" : " skip not_a_real_id"
66
- },
67
- "then" : true ,
68
- "else" : {
69
- "$ref" : " #/$defs/const_not_id"
70
- }
71
- },
72
- "tests" : [
73
- {
74
- "description" : " skip traversing definition for a valid result" ,
75
- "data" : " skip not_a_real_id" ,
76
- "valid" : true
77
- },
78
- {
79
- "description" : " const at const_not_id does not match" ,
80
- "data" : 1 ,
81
- "valid" : false
82
- }
83
- ]
84
52
}
85
53
]
Original file line number Diff line number Diff line change 56
56
"valid" : false
57
57
}
58
58
]
59
- },
60
- {
61
- "description" : " non-schema object containing an $anchor property" ,
62
- "schema" : {
63
- "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
64
- "$defs" : {
65
- "const_not_anchor" : {
66
- "const" : {
67
- "$anchor" : " not_a_real_anchor"
68
- }
69
- }
70
- },
71
- "if" : {
72
- "const" : " skip not_a_real_anchor"
73
- },
74
- "then" : true ,
75
- "else" : {
76
- "$ref" : " #/$defs/const_not_anchor"
77
- }
78
- },
79
- "tests" : [
80
- {
81
- "description" : " skip traversing definition for a valid result" ,
82
- "data" : " skip not_a_real_anchor" ,
83
- "valid" : true
84
- },
85
- {
86
- "description" : " const at const_not_anchor does not match" ,
87
- "data" : 1 ,
88
- "valid" : false
89
- }
90
- ]
91
59
}
92
60
]
Original file line number Diff line number Diff line change 49
49
"valid" : false
50
50
}
51
51
]
52
- },
53
- {
54
- "description" : " non-schema object containing an $id property" ,
55
- "schema" : {
56
- "$schema" : " https://json-schema.org/draft/2019-09/schema" ,
57
- "$defs" : {
58
- "const_not_id" : {
59
- "const" : {
60
- "$id" : " not_a_real_id"
61
- }
62
- }
63
- },
64
- "if" : {
65
- "const" : " skip not_a_real_id"
66
- },
67
- "then" : true ,
68
- "else" : {
69
- "$ref" : " #/$defs/const_not_id"
70
- }
71
- },
72
- "tests" : [
73
- {
74
- "description" : " skip traversing definition for a valid result" ,
75
- "data" : " skip not_a_real_id" ,
76
- "valid" : true
77
- },
78
- {
79
- "description" : " const at const_not_id does not match" ,
80
- "data" : 1 ,
81
- "valid" : false
82
- }
83
- ]
84
52
}
85
53
]
Original file line number Diff line number Diff line change 56
56
"valid" : false
57
57
}
58
58
]
59
- },
60
- {
61
- "description" : " non-schema object containing an $anchor property" ,
62
- "schema" : {
63
- "$schema" : " https://json-schema.org/draft/2020-12/schema" ,
64
- "$defs" : {
65
- "const_not_anchor" : {
66
- "const" : {
67
- "$anchor" : " not_a_real_anchor"
68
- }
69
- }
70
- },
71
- "if" : {
72
- "const" : " skip not_a_real_anchor"
73
- },
74
- "then" : true ,
75
- "else" : {
76
- "$ref" : " #/$defs/const_not_anchor"
77
- }
78
- },
79
- "tests" : [
80
- {
81
- "description" : " skip traversing definition for a valid result" ,
82
- "data" : " skip not_a_real_anchor" ,
83
- "valid" : true
84
- },
85
- {
86
- "description" : " const at const_not_anchor does not match" ,
87
- "data" : 1 ,
88
- "valid" : false
89
- }
90
- ]
91
59
}
92
60
]
Original file line number Diff line number Diff line change 49
49
"valid" : false
50
50
}
51
51
]
52
- },
53
- {
54
- "description" : " non-schema object containing an $id property" ,
55
- "schema" : {
56
- "$schema" : " https://json-schema.org/draft/2020-12/schema" ,
57
- "$defs" : {
58
- "const_not_id" : {
59
- "const" : {
60
- "$id" : " not_a_real_id"
61
- }
62
- }
63
- },
64
- "if" : {
65
- "const" : " skip not_a_real_id"
66
- },
67
- "then" : true ,
68
- "else" : {
69
- "$ref" : " #/$defs/const_not_id"
70
- }
71
- },
72
- "tests" : [
73
- {
74
- "description" : " skip traversing definition for a valid result" ,
75
- "data" : " skip not_a_real_id" ,
76
- "valid" : true
77
- },
78
- {
79
- "description" : " const at const_not_id does not match" ,
80
- "data" : 1 ,
81
- "valid" : false
82
- }
83
- ]
84
52
}
85
53
]
You can’t perform that action at this time.
0 commit comments