Bug: TSOA does not output valid type names in Swagger definition #1559
Labels
bug
good first issue
This issue could be an easy PR for those looking to help contribute
help wanted
workaround available
Sorting
Expected Behavior
Should resolve type to acceptable name:
SearchableField_(typeofshopsSubFields)[ngram]_
^[a-zA-Z0-9\.\-_]+$
Current Behavior
The types looks like this:
Possible Solution
Fix it here:
https://github.com/lukeautry/tsoa/blob/master/packages/cli/src/metadataGeneration/typeResolver.ts#L1104
This should never resolve to invalid name, should always output according to acceptable pattern
"^[a-zA-Z0-9\.\-_]+$"
Steps to Reproduce
See type definitions above.
Context (Environment)
Version of the library:
5.1.1
Version of NodeJS:
v18.16.0
Yarn version:
1.22.19
Detailed Description
Basically we need to do type-gymnastics to resolve the types properly in TSOA.
This causes it to generate bad names which is not accepted by the .
The text was updated successfully, but these errors were encountered: