Skip to content
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

unknown keyword "errorMessage" #238

Open
jameswinglmi opened this issue Nov 22, 2023 · 1 comment
Open

unknown keyword "errorMessage" #238

jameswinglmi opened this issue Nov 22, 2023 · 1 comment

Comments

@jameswinglmi
Copy link

jameswinglmi commented Nov 22, 2023

Schemas using "errorMessage" or "message" keywords fail validation/compilation with the above error. Of course you can get past it by disabling strict mode (--strict=false), but it seems like you shouldn't have to give up strict mode to make it accept valid keywords. I tried -c ajv-errors to no avail.

Am I missing something obvious, or does the CLI just not have any way of loading the ajv-errors package (or others)?

@jameswinglmi
Copy link
Author

Is there a means of adding a keyword in the CLI version, so that I might add the "errorMessage" keyword in order to at least ignore the errorMessage in the schema so that I can still use 'strict' mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant