remove tests that are not valid for draft7
There is no order of evaluation between $id and $ref in draft7, as all other
keywords are ignored when $ref is present.
"valid": false
}
]
- },
- {
- "description": "order of evaluation: $id and $ref",
- "schema": {
- "$comment": "$id must be evaluated before $ref to get the proper $ref destination",
- "$id": "/ref-and-id1/base.json",
- "$ref": "int.json",
- "$defs": {
- "bigint": {
- "$comment": "canonical uri: /ref-and-id1/int.json",
- "$id": "int.json",
- "maximum": 10
- },
- "smallint": {
- "$comment": "canonical uri: /ref-and-id1-int.json",
- "$id": "/ref-and-id1-int.json",
- "maximum": 2
- }
- }
- },
- "tests": [
- {
- "description": "data is valid against first definition",
- "data": 5,
- "valid": true
- },
- {
- "description": "data is invalid against first definition",
- "data": 50,
- "valid": false
- }
- ]
- },
- {
- "description": "order of evaluation: $id and $anchor and $ref",
- "schema": {
- "$comment": "$id must be evaluated before $ref to get the proper $ref destination",
- "$id": "/ref-and-id2/base.json",
- "$ref": "#bigint",
- "$defs": {
- "bigint": {
- "$comment": "canonical uri: /ref-and-id2/base.json/$defs/bigint; another valid uri for this location: /ref-and-id2/base.json#bigint",
- "$id": "#bigint",
- "maximum": 10
- },
- "smallint": {
- "$comment": "canonical uri: /ref-and-id2#/$defs/smallint; another valid uri for this location: /ref-and-id2/#bigint",
- "$id": "/#bigint",
- "maximum": 2
- }
- }
- },
- "tests": [
- {
- "description": "data is valid against first definition",
- "data": 5,
- "valid": true
- },
- {
- "description": "data is invalid against first definition",
- "data": 50,
- "valid": false
- }
- ]
}
]
