summaryrefslogtreecommitdiff
path: root/json/tests/draft4/id.json
diff options
context:
space:
mode:
Diffstat (limited to 'json/tests/draft4/id.json')
-rw-r--r--json/tests/draft4/id.json53
1 files changed, 0 insertions, 53 deletions
diff --git a/json/tests/draft4/id.json b/json/tests/draft4/id.json
deleted file mode 100644
index 1c91d33..0000000
--- a/json/tests/draft4/id.json
+++ /dev/null
@@ -1,53 +0,0 @@
-[
- {
- "description": "id inside an enum is not a real identifier",
- "comment": "the implementation must not be confused by an id buried in the enum",
- "schema": {
- "definitions": {
- "id_in_enum": {
- "enum": [
- {
- "id": "https://localhost:1234/my_identifier.json",
- "type": "null"
- }
- ]
- },
- "real_id_in_schema": {
- "id": "https://localhost:1234/my_identifier.json",
- "type": "string"
- },
- "zzz_id_in_const": {
- "const": {
- "id": "https://localhost:1234/my_identifier.json",
- "type": "null"
- }
- }
- },
- "anyOf": [
- { "$ref": "#/definitions/id_in_enum" },
- { "$ref": "https://localhost:1234/my_identifier.json" }
- ]
- },
- "tests": [
- {
- "description": "exact match to enum, and type matches",
- "data": {
- "id": "https://localhost:1234/my_identifier.json",
- "type": "null"
- },
- "valid": true
- },
- {
- "description": "match $ref to id",
- "data": "a string to match #/definitions/id_in_enum",
- "valid": true
- },
- {
- "description": "no match on enum or $ref to id",
- "data": 1,
- "valid": false
- }
- ]
- }
-
-]