Skip to content

Commit fa791ad

Browse files
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.
1 parent 0f341dc commit fa791ad

File tree

1 file changed

+0
-64
lines changed

1 file changed

+0
-64
lines changed

tests/draft7/ref.json

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -644,69 +644,5 @@
644644
"valid": false
645645
}
646646
]
647-
},
648-
{
649-
"description": "order of evaluation: $id and $ref",
650-
"schema": {
651-
"$comment": "$id must be evaluated before $ref to get the proper $ref destination",
652-
"$id": "/ref-and-id1/base.json",
653-
"$ref": "int.json",
654-
"$defs": {
655-
"bigint": {
656-
"$comment": "canonical uri: /ref-and-id1/int.json",
657-
"$id": "int.json",
658-
"maximum": 10
659-
},
660-
"smallint": {
661-
"$comment": "canonical uri: /ref-and-id1-int.json",
662-
"$id": "/ref-and-id1-int.json",
663-
"maximum": 2
664-
}
665-
}
666-
},
667-
"tests": [
668-
{
669-
"description": "data is valid against first definition",
670-
"data": 5,
671-
"valid": true
672-
},
673-
{
674-
"description": "data is invalid against first definition",
675-
"data": 50,
676-
"valid": false
677-
}
678-
]
679-
},
680-
{
681-
"description": "order of evaluation: $id and $anchor and $ref",
682-
"schema": {
683-
"$comment": "$id must be evaluated before $ref to get the proper $ref destination",
684-
"$id": "/ref-and-id2/base.json",
685-
"$ref": "#bigint",
686-
"$defs": {
687-
"bigint": {
688-
"$comment": "canonical uri: /ref-and-id2/base.json/$defs/bigint; another valid uri for this location: /ref-and-id2/base.json#bigint",
689-
"$id": "#bigint",
690-
"maximum": 10
691-
},
692-
"smallint": {
693-
"$comment": "canonical uri: /ref-and-id2#/$defs/smallint; another valid uri for this location: /ref-and-id2/#bigint",
694-
"$id": "/#bigint",
695-
"maximum": 2
696-
}
697-
}
698-
},
699-
"tests": [
700-
{
701-
"description": "data is valid against first definition",
702-
"data": 5,
703-
"valid": true
704-
},
705-
{
706-
"description": "data is invalid against first definition",
707-
"data": 50,
708-
"valid": false
709-
}
710-
]
711647
}
712648
]

0 commit comments

Comments
 (0)