Closed Ivan-Shesterkin closed 1 year ago
Hello there Ivan-Shesterkin 👋
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.👀
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
I trying to reuse and modify some types in the validator. I define type ILatinString with pattern and I trying to reuse this type with new restrictions like maxLength.
I expect, that after this configuration validator will check that nickName and clanName fields contains only Latin characters and the validator ensure that nickname length should be between 2 - 15 and clanName length should be between 2 - 10.
Current Behavior
Validator checks pattern, but ignores length decorators.
Steps to Reproduce
https://github.com/Ivan-Shesterkin/tsoa-issues
Context (Environment)
Version of the library: "tsoa": "5.1.1", Version of NodeJS: v18.15.0
Detailed Description
This is how autogenerated model looks like for this config
Breaking change?