-
-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
draft2020-12 test cases are not compliant with the specification #750
Comments
The document root for the tests is not a schema, so that passage does not apply to it. This part applies:
The
They are schema resources because they declare |
You may also want to review #586 and related issues. |
fixed typo in original comment
thanks for the pr reference.
they don't declare
|
Point taken. They are intended as part of the test suite to be schema resources. Take that at face value. I do know that at some point @karenetheridge wanted all of the |
It's not in violation of the spec, though, because the document is not a schema. The test suite defines the content of the You shouldn't need to change anything in your implementation to run through the test suite. It sounds to me like you need to allow for schemas embedded in other non-schema documents. |
the implementation supports that, im disabling enforcing this part of the spec (in bold)
the implementation panics when it sees $schema in a non-resource schema! |
I'm saying that those are resource root schemas because the test file format says that the data contained at that location in the file is a schema and Core Section 4.3.5 says:
It's a resource because it's the root of the schema. It's just that in this case, the schema is embedded in another document (which means it's not the root of the document, and that's okay). |
totally clears it for me! tysm, i appreciate the specification links :D |
I'm writing a fully-compliant json schema implementation, when running the draft2020-12 test cases it did throw for this reason:
tldr; the schemas have the $schema keyword while they are not resource schemas!
would be happy to update the test cases, once this is confirmed to be a non-compliance issue!
The text was updated successfully, but these errors were encountered: