Questions tagged [tsoa]
36 questions
0
votes
1 answer
tsoa-swagger: file parameter is always undefined in upload
I have a problem with Tsoa nodejs File upload
I wrote the method based on the tsoa documentation but the output varible is always undefined
This is my method
@Post('/uploadNewExporterTemplate')
public async uploadNewExporterTemplate(
…

Mido elhawy
- 469
- 4
- 11
0
votes
1 answer
TSOA multiple responses for same status code
I want to use the same error response status code twice for some endpoints (I dont want to debate if this is correct or not). Suppose I have two different types of conflicts, I would want to return two separate 409 errors. This is supported as of…

omeanwell
- 1,847
- 1
- 10
- 16
0
votes
1 answer
Swagger OpenAPI 3.0 empty authentication header in request
I generated the swagger.json listed below using tsoa for TypeScript. However when I add an access token to the authorize menu from swagger and make a request to one of my endpoints I am expecting the access token to be inside the x-access-token…

Jiren
- 536
- 7
- 24
0
votes
1 answer
TS2614: Module has no exported member 'NextHandleFunction'
Error:
node_modules/@types/body-parser/index.d.ts:14:10 - error TS2614: Module '"../../../src/connect"' has no exported member 'NextHandleFunction'. Did you mean to use 'import NextHandleFunction from "../../../src/connect"' instead? 14 import {…

sopan mittal
- 37
- 1
- 6
0
votes
1 answer
node.js TSOA and socket.io
I have a node.js and TSOA project
I am wondering if anyone has tried to inject a socket.io reference into
all of the routes?
Here is my setup:
import * as express from 'express';
import * as cors from 'cors';
import * as bodyparser from…

Kevin192291
- 1,925
- 4
- 26
- 43
0
votes
1 answer
status code must be a number Error on POST request tsoa typescrpt
I am experimenting tsoa for rest API. But I always got the following error for post request.
AssertionError [ERR_ASSERTION]: status code must be a number
at Object.set status [as status] (PROJECT_PATH/node_modules/koa/lib/response.js:87:5)
…

Khaino
- 3,774
- 1
- 27
- 36