remove conditional $id tests from draft 6
"valid": false
}
]
- },
- {
- "description": "non-schema object containing a plain-name $id property",
- "schema": {
- "$defs": {
- "const_not_anchor": {
- "const": {
- "$id": "#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
- }
- ]
- },
- {
- "description": "non-schema object containing an $id property",
- "schema": {
- "$defs": {
- "const_not_id": {
- "const": {
- "$id": "not_a_real_id"
- }
- }
- },
- "if": {
- "const": "skip not_a_real_id"
- },
- "then": true,
- "else" : {
- "$ref": "#/$defs/const_not_id"
- }
- },
- "tests": [
- {
- "description": "skip traversing definition for a valid result",
- "data": "skip not_a_real_id",
- "valid": true
- },
- {
- "description": "const at const_not_id does not match",
- "data": 1,
- "valid": false
- }
- ]
}
]
