We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When the schema itself contains a key "$schema": "https://json-schema.org/draft/2020-12/schema", this is thrown as an error.
"$schema": "https://json-schema.org/draft/2020-12/schema"
it('should succeed', () => { const schema = { $id: 'https://my-schema.org/SomeObject.json', $schema: 'https://json-schema.org/draft/2020-12/schema', title: 'Some title', description: 'Some description', type: 'object', additionalProperties: true, properties: { id: { description: 'An id', type: 'string', }, }, } expect({ $schema: 'https://my-schema.org/SomeObject.json', id: 'some id', }).toMatchSchema(schema) })
The unit test should succeed
The unit test fails with this error:
no schema with key or ref "https://json-schema.org/draft/2020-12/schema"
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When the schema itself contains a key
"$schema": "https://json-schema.org/draft/2020-12/schema"
, this is thrown as an error.Reproduction:
Expected
The unit test should succeed
Actual
The unit test fails with this error:
The text was updated successfully, but these errors were encountered: