Closed sl33kr closed 3 months ago
Why is this a tsoa issue? The name is valid afaict
I expected Omit to behave the same as Pick when extended like in the example repo.
Is it possible to not output this model, given it's not being referenced by anything in the doc?
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
When attempting to use the
Omit
utility type, tsoa generates an extra model into the swagger definition that isn't actually referenced anywhere.We currently use all interfaces as the tsoa generated naming for Generics isn't compatible with AWS API Gateway. Unfortunately this included extra type breaks our deployment.
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
Swagger file should generate with only referenced interfaces
Current Behavior
An extra unreferenced type is included in the swagger docs.
Possible Solution
Looks like the workaround described in this feature request does appear to work here.
Steps to Reproduce
Repo with minimal repo steps https://github.com/sl33kr/tsoa-example
Note in that repo, that
Pick
does not have this issue.Context (Environment)
Version of the library: > 6.0.0 Version of NodeJS: 18.19.1