You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can use the decorator or validated returns via @Res(). The OpenAPI spec is not dynamic, i.e. we don't adapt it on the fly, we compile it ahead of time (to power runtime validation).
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
As tsoa validates request payloads, it should insert an example "Validation Failed" response and type into the Open API Spec.
Current Behavior
I would need to add @response("422", "Validation error") at the Route level manually and Type it/give an Example for it.
Possible Solution
Tsoas default responses get added into the swagger.json
Steps to Reproduce
Context (Environment)
Version of the library: 6.6.0
Version of NodeJS: v20.9.0
Detailed Description
Breaking change?
The text was updated successfully, but these errors were encountered: