Open
Description
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
When we apply @isInt
interface CreatePostInterface {
/** @isInt externalId must be a number */
externalId: number
}
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
Metadata
Metadata
Assignees
Labels
No labels