Open KennyLindahl opened 5 months ago
Hello there KennyLindahl 👋
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
This is still an issue, please remove the stale
label
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 .