lukeautry / tsoa

Build OpenAPI-compliant REST APIs using TypeScript and Node
MIT License
3.45k stars 497 forks source link

Add default number type configuration #1437

Closed PetrKubes97 closed 1 year ago

PetrKubes97 commented 1 year ago

Hi, some time back I've asked about default number types, but unfortunately the issue was closed as stale - https://github.com/lukeautry/tsoa/issues/1408. I went ahead and implemented it anyway as it is super useful for my project. I think it's quite useful, as double as the default number type isn't suitable, if the backend uses for example number ids for entities. The amount of annotation is then just too damn high.

I wasn't sure how to write proper test for this, as I could find any configuration tests.

All Submissions:

Closing issues

Put closes #1408

If this is a new feature submission:

Potential Problems With The Approach

Test plan