-
Notifications
You must be signed in to change notification settings - Fork 806
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
feat: add is @IsPortNumber
decorator
#1735
Conversation
Could you write some tests for this? |
2ef8ff0
to
0da8f89
Compare
Closing this as wontfix because we won't add a second port decorator. We already have a In the meantime, if you strictly want to accept numbers you can use the following: class MyPayload {
@IsNumber()
@Min(0)
@Max(65535)
port: number;
} |
@IsPortNumber
decorator
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Description
Checklist
Update index.md
)develop
)npm run prettier:check
passesnpm run lint:check
passesFixes
fixes #826