We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A schema like this:
const yupSchema = yup.object().shape({ someDate: yup.date().nullable(), someString: yup.string().nullable(), });
...results in a json schema like this:
{ "type": "object", "default": {}, "properties": { "someDate": { "type": "string", "format": "date-time" }, "someString": { "type": [ "string", "null" ] } } }
I expect it to respect the nullable method on date(). So should result in:
nullable
{ "type": "object", "default": {}, "properties": { "someDate": { "type": [ "string", "null", ], "format": "date-time" }, "someString": { "type": [ "string", "null" ] } } }
Could you add support for this?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
A schema like this:
...results in a json schema like this:
I expect it to respect the
nullable
method on date(). So should result in:Could you add support for this?
The text was updated successfully, but these errors were encountered: