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
Describe the bug which template:
A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Use plain json without schema It fails to validate - schema is undefined
More details:
ajv.js
function validate(schemaKeyRef, data) { ... v = this.getSchema(schemaKeyRef); ... }
ajv.js line 238 It compares keyRef = "http://json-schema.org/draft-06/schema# with "http://json-schema.org/draft-07/schema"
return self._schemas[keyRef] || self._refs[keyRef] || self._fragments[keyRef];
result "undefined" will be returned
Error in line 92 will be thrown:
if (!v) throw new Error('no schema with key or ref "' + schemaKeyRef + '"');
Expected behavior
The correct schema will be taken
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered:
Noted I'll check this out asap
Sorry, something went wrong.
Duplicate #52
hamzahamidi
No branches or pull requests
Describe the bug
which template:
A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
Use plain json without schema
It fails to validate - schema is undefined
More details:
ajv.js
ajv.js line 238
It compares keyRef = "http://json-schema.org/draft-06/schema# with "http://json-schema.org/draft-07/schema"
result "undefined" will be returned
Error in line 92 will be thrown:
Expected behavior
The correct schema will be taken
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: