You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried several other schemata I know to be invalid, such as:
schema = { "type" => "unknown" }
and got the same result.
Shouldn't the correct behavior be to raise an exception when the schema is invalid, or at least return false? This is the behavior of libXML in the XML space, and is also the behavior of several Python implementations of JSON schema.
I plan to investigate this and submit a fix, but wanted to raise the issue first in case this is actually the desired behavior, and if so, ask why.
The text was updated successfully, but these errors were encountered:
This doesn't seem right:
The example is an invalid schema, obviously. It should be:
I tried several other schemata I know to be invalid, such as:
and got the same result.
Shouldn't the correct behavior be to raise an exception when the schema is invalid, or at least return false? This is the behavior of libXML in the XML space, and is also the behavior of several Python implementations of JSON schema.
I plan to investigate this and submit a fix, but wanted to raise the issue first in case this is actually the desired behavior, and if so, ask why.
The text was updated successfully, but these errors were encountered: