-
-
Notifications
You must be signed in to change notification settings - Fork 888
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
"no schema" Error thrown #509
Comments
see #472 |
Added note to readme: daf7d6b |
hi it's my first time using json schema and i get this issue |
Same. I'm trying to figure this out. |
Be careful that the version of ajv you're using, matches the schema json file you use. That will also trigger this error. |
I think the referenced instructions don't work for 6.x. With the same code and 5.5.2 I can successfully add a meta schema, with 6.x - I get a edit: oops, didn't notice the |
@jorotenev Difficult to say what's the problem without the example, but it all works. You should add all meta-schemas to the instance that are used in your schemas in "$schema" keyword. By default in v6 only draft-07 meta-schema is added, in v5 - only draft-06. EDIT: So, if you use draft-06 schema in v5 it will just work, in v6 you either have to update $schema to be draft-07 (it's backward compatible, so it's ok), or add draft-06 meta-schema. |
Hi,
First time user of AJV. I'm trying to use extract-text-webpack-plugin that depends on AJV. While this plugin is doing its thing during bundling my CSS output via webpack; AJV throws the error message:
Error: no schema with key or ref "http://json-schema.org/draft-04/schema#"
Can't understand what its complaint is. That URL will load a JSON file so its valid. I don't like the idea that my deployment is now dependent on an external URL! Is there a way to turn off what ever its doing at this point; or use a local schema?
thanks
Jab
PS
The full error stack is:
The text was updated successfully, but these errors were encountered: