[ ] Code style update (formatting, local variables)
[ ] Refactoring (no functional changes, no api changes)
[ ] Build related changes
[x] Docs
[ ] Other... Please describe:
What is the current behavior?
The example code for PORT validation in the configuration schema allows to accept any numeric value without enforcing constraints on valid port numbers.
Issue Number: N/A
What is the new behavior?
The example code for PORT validation in the configuration schema is improved to only accept valid port numbers within the range of 0 to 65535.
Does this PR introduce a breaking change?
[ ] Yes
[x] No
Other information
Note: @IsPort from class-validator only works with string.
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
The example code for PORT validation in the configuration schema allows to accept any numeric value without enforcing constraints on valid port numbers.
Issue Number: N/A
What is the new behavior?
The example code for PORT validation in the configuration schema is improved to only accept valid port numbers within the range of 0 to 65535.
Does this PR introduce a breaking change?
Other information
Note:
@IsPort
from class-validator only works with string.