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
import{Controller,Get,Route,Security}from"tsoa";importosfrom"os";import{HealthResponse}from"types/health";
@Route("health")
@Security("apiKey")exportclassHealthControllerextendsController{/** * Returns health of the service. Used to determine whether a deployment is healthy. */
@Get()publicasyncgetHealth(): Promise<HealthResponse>{return{nodeHost: os.hostname(),gitSha: process.env.GIT_COMMIT,};}}
Current Behavior
Tsoa errors while attempting to build and generate swagger for this code.
Thank you for opening your very first issue in this project.
We will try to get back to you as soon as we can.👀
skitscha
changed the title
expressAuthenticationRecasted functions is undefined ingenerated routes
expressAuthenticationRecasted functions is undefined in generated routes
Jul 29, 2024
Sorting
I'm submitting a ...
I confirm that I
Expected Behavior
I expect that in the following code snippets, tsoa will properly enforce the security header that is defined in the swagger.json.
Current Behavior
Tsoa errors while attempting to build and generate swagger for this code.
Possible Solution
You can see this error by copying the provided code blocks.
Steps to Reproduce
Context (Environment)
Version of the library: 6.4.0
Version of NodeJS: 20.15.1
Detailed Description
N.A
Breaking change?
The text was updated successfully, but these errors were encountered: