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
I have an interface like the following:
interface User { name: string, deactivate_on? : Date | null }
The deactivate_on is optional but should be able to be nullable, to set the value as null in the database if it has previously been set with a date.
deactivate_on
But if I submit a null value, the request fails as TSOA tries to validate null as a Date:
null
{ message: 'Validation error: ', details: { 'requestBody.user_properties.deactivate_on': { message: 'invalid ISO 8601 datetime format, i.e. YYYY-MM-DDTHH:mm:ss', value: null } } }
I'm submitting a ...
I confirm that I
Null value should be accepted and processed for the nullable field
TSOA tries to validate the null value as a Date
Version of the library: 6.5.1 Version of NodeJS: 18
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I have an interface like the following:
The
deactivate_on
is optional but should be able to be nullable, to set the value as null in the database if it has previously been set with a date.But if I submit a null value, the request fails as TSOA tries to validate
null
as a Date:Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
Null value should be accepted and processed for the nullable field
Current Behavior
TSOA tries to validate the null value as a Date
Possible Solution
Steps to Reproduce
Context (Environment)
Version of the library: 6.5.1
Version of NodeJS: 18
Detailed Description
Breaking change?
The text was updated successfully, but these errors were encountered: