Closed
Description
(By "is not defined" I don't mean that it's considered and left as "undefined" behavior; I mean it's not addressed at all.)
In Slack, we had a short discussion around the behavior of this schema:
{
"anyOf": [
{ "$ref": "https://unresolvable.uri/schema" },
true
]
}
An implementation could handle this in one of two ways:
- Produce a validation error, meaning that /anyOf/0 merely fails validation and the implementation continues to /anyOf/1, ultimately passing an instance.
- Produce a runtime error, meaning that the implementation halts evaluation and no validation result is given either way.
The discussion landed on the latter: produce a runtime error, halting evaluation.
We need to add language to spec to properly prescribe this behavior.
For reference:
- Core spec 9.2 on dereferencing
- Core spec 9.4.2 on
$ref
-ing to non-schemas
Metadata
Metadata
Assignees
Labels
No labels