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
By default if something is required in request body interface, it is validated nicely when that param is missing. For Eg:
interface CreatePostInterface { externalId: number }
If we request body is missing externalId, we get nice 'externalId' is required
'externalId' is required
When we apply @isInt
@isInt
interface CreatePostInterface { /** @isInt externalId must be a number */ externalId: number }
This overrides the required message with the externalId must be a number
externalId must be a number
How can I maintain correct behaviour so that it returns is required for missing/empty param and must be a number for invalid number
The text was updated successfully, but these errors were encountered:
No branches or pull requests
By default if something is required in request body interface, it is validated nicely when that param is missing.
For Eg:
If we request body is missing externalId, we get nice
'externalId' is required
When we apply
@isInt
This overrides the required message with the
externalId must be a number
How can I maintain correct behaviour so that it returns is required for missing/empty param and must be a number for invalid number
The text was updated successfully, but these errors were encountered: