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

Add support of ajv-errors #36

Closed
nordluf opened this issue Jun 14, 2020 · 2 comments
Closed

Add support of ajv-errors #36

nordluf opened this issue Jun 14, 2020 · 2 comments
Assignees
Labels
enhancement New feature or request

Comments

@nordluf
Copy link

nordluf commented Jun 14, 2020

is it possible to add support of https://github.com/ajv-validator/ajv-errors ?
Keyword errorMessage can't be the part of a schema atm, and initialization is not possible as well.

@ostrowr
Copy link
Owner

ostrowr commented Jun 15, 2020

I'm hesitant to add errorMessage to the schema as a one-off, but I think adding a set of custom keywords you want should be pretty straightforward. This seems like a necessary feature for anyone using ts-json-validators with plugins so I'll take care of this as soon as I can. (PRs also welcome, of course!

@ostrowr ostrowr added the enhancement New feature or request label Jun 15, 2020
@ostrowr ostrowr self-assigned this Jun 15, 2020
@ostrowr
Copy link
Owner

ostrowr commented Jun 15, 2020

For custom keywords (not just error messages) this is a dupe of #35 , so I'm closing in favor of that one.

@ostrowr ostrowr closed this as completed Jun 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants