Using Omit
on a type, tsoa ignores regex pattern validation on field in that type
#1543
Closed
2 of 4 tasks
Using
Omit
on a type that includes a field that is a string with a regex pattern, tsoa ignores the regex pattern validation, and validates only that the value is a string.Sorting
I'm submitting a ...
I confirm that I
Steps to Reproduce
Given a regex pattern type, e.g. UUID type from the tsoa docs:
And types:
Expected Behavior
Using
CreateUser
as the type of a request body, tsoa should validate that theid
field string value matches the regex pattern.Current Behavior
Using
CreateUser
on the request body of a request, tsoa only validates that theid
field is a string, but does NOT validates the regex pattern.Context (Environment)
Version of the library: 6.0.1
Version of NodeJS: 16.17.0
The text was updated successfully, but these errors were encountered: