-
Notifications
You must be signed in to change notification settings - Fork 56
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
Using custom keywords? #51
Comments
fluent-schema doesn't support custom AJV keywords. we had a similar discussion here: #16 To be fair, I'm not sure if it's a good idea to add not standard keywords related to a specific validator (e.g. AJV). Regardless can you give an example of API that would you like to use |
@aboutlo Okay. I wanted to add a specific type/keyword to be able to manipulate the data to my needs in a generic way. |
Is
And the input could be:
|
I imagined as a type in order to accept an arbitrary valid JSON. |
Unless I've missed something, adding support for this would allow us to use the |
Yes, any feature outside JSON Schema spec isn't currently supported |
Moved the conversation here: #55 |
AJV has support to add custom keywords, but I don't see any way of using these with fluent schema.
AJV will accept this:
but I have no idea how to do something like this in fluent-schema, if its even possible.
The text was updated successfully, but these errors were encountered: