-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Specifying a meta schema in $schema forces validation error: no schema with key or ref "http://json-schema.org/draft-06/schema#" #1274
Comments
Interestingly, a workaround is to add an {
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "http://json-schema.org/draft-06/schema#",
// ...
} So I suppose (without checking the code) that In case of an invalid meta schema in {
"$schema": "http://json-schema.org/draft-06/schema#",
"$id": "UNKNOWN META SCHEMA",
// ...
} |
Ok, got it, I had to define a Custom schema validation:
Introduced at #1130 @epicfaace some remarks:
|
Not sure if this is related, but when trying to make this library work with AJV 6.7.0 (React 16.8.4)
|
@laspluviosillas sounds like a problem with your webpack config? if you can send me a link to your github repo I can help look into it |
|
Prerequisites
Description
If the schema specifies a meta schema in
$schema
:RJSF then complains with error
The error is issued by underlying ajv library.
Steps to Reproduce
Example on RJSF playground
Validation error is immediately visible.
Expected behavior
Schema can be used without errors.
Actual behavior
See description.
Version
This schema could be used on 1.2.1.
This behaviour (regression?) has been introduced by 1.3.0 and is the same at 1.5.0.
The text was updated successfully, but these errors were encountered: