[
{
"description"
:
"non-schema object containing an $anchor property"
,
"schema"
: {
"$defs"
: {
"const_not_anchor"
: {
"const"
: {
"$anchor"
:
"not_a_real_anchor"
}
}
},
"if"
: {
"const"
:
"skip not_a_real_anchor"
},
"then"
:
true
,
"else"
: {
"$ref"
:
"#/$defs/const_not_anchor"
}
},
"tests"
: [
{
"description"
:
"skip traversing definition for a valid result"
,
"data"
:
"skip not_a_real_anchor"
,
"valid"
:
true
},
{
"description"
:
"const at const_not_anchor does not match"
,
"data"
: 1,
"valid"
:
false
}
]
}
]