-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
TypeBox no longer requires explicit configuration of kind and modifier keywords #19
Closed
2 tasks done
Comments
Thanks for reporting! Would you like to send a Pull Request to address this issue? |
@mcollina Yup, just preparing one now for review :) |
sinclairzx81
changed the title
TypeBox no longer requires explicit configuration of kind and modifier keywords.
TypeBox no longer requires explicit configuration of kind and modifier keywords
Jun 29, 2022
4 tasks
kibertoad
pushed a commit
that referenced
this issue
Jun 29, 2022
@sinclairzx81 This is a really nice improvement 👌🏻 |
simonplend
added a commit
to simonplend/fastify
that referenced
this issue
Jun 29, 2022
TypeBox no longer requires the `kind` and `modifier` keywords to be added to Ajv (since v0.24.0). See: - https://github.com/sinclairzx81/typebox/blob/master/changelog.md#0240 - fastify/fastify-type-provider-typebox#19
4 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Prerequisites
Issue
Hi. Just a heads up. I've recently published a new version of TypeBox that should mitigate the need to configure AJV for the
kind
andmodifier
keywords. As of@sinclair/typebox@0.24.0
, thekind
andmodifier
keywords have been replaced as symbol property keys. This seems to sidestep the AJVstrict
checks allowing TypeBox schemas to be used without any explicit configuration.Before
After
The TypeBox type provider will continue to function with this existing
kind
andmodifier
configuration, however it may be good to remove theajvTypeBoxPlugin
export and update the documentation accordingly.Current
Update
The text was updated successfully, but these errors were encountered: