Skip to content

Commit

Permalink
add draft 7 -> draft 2019-09 test
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsdennis committed Aug 14, 2022
1 parent dfcea62 commit dab94fa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions remotes/draft2019-09/dependentRequired.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"$id": "http://localhost:1234/draft2019-09/dependentRequired.json",
"$schema": "https://json-schema.org/draft/2019-09/schema",
"dependentRequired": {
"foo": ["bar"]
}
}
24 changes: 24 additions & 0 deletions tests/draft7/optional/cross-draft.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[
{
"description": "refs to future drafts are processed as future drafts",
"schema": {
"type": "object",
"allOf": [
{ "properties": { "foo": true } },
{ "$ref": "http://localhost:1234/draft2019-09/dependentRequired.json" }
]
},
"tests": [
{
"description": "missing bar is invalid",
"data": {"foo": "any value"},
"valid": false
},
{
"description": "present bar is valid",
"data": {"foo": "any value", "bar": "also any value"},
"valid": true
}
]
}
]

0 comments on commit dab94fa

Please sign in to comment.