Skip to content

Commit

Permalink
add optional tests for $refing into known non-applicator keywords
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsdennis committed Oct 25, 2023
1 parent cda4281 commit 6695ca3
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/draft-next/optional/refOfUnknownKeyword.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,28 @@
"valid": false
}
]
},
{
"description": "reference internals of known non-applicator",
"schema": {
"$schema": "https://json-schema.org/draft/next/schema",
"$id": "/base",
"examples": [
{ "type": "string" }
],
"$ref": "#/examples/0"
},
"tests": [
{
"description": "match",
"data": "a string",
"valid": true
},
{
"description": "mismatch",
"data": 42,
"valid": false
}
]
}
]

0 comments on commit 6695ca3

Please sign in to comment.