lukeautry / tsoa

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

Problem with swagger generation, when using generic value in nested generic #1502

Closed Luzgan closed 7 months ago

Luzgan commented 10 months ago

Sorting

Expected Behavior

Type generation succed for setup mentioned below (more info there).

Current Behavior

Type generation fails for setup mentioned below.

Possible Solution

N/A

Steps to Reproduce

  1. Checkout my minimal example: https://github.com/Luzgan/tsoa-problem-example
  2. run yarn install
  3. run npm start

Context (Environment)

Version of the library: 5.1.1 Version of NodeJS: v18.16.0

Detailed Description

Script will fail on type generation. It seems that tsoa type parser is not handling well nested generics that are using generic value for following generic (please look at https://github.com/Luzgan/tsoa-problem-example/blob/main/src/routes/TestController.ts#L7). Now, the question is - is that a bug in the library OR this just can't for some reason be implemented in the library OR it just wasn't supported up till now? Or maybe logic in my setup is flawed in some way?

Breaking change?

N/A

github-actions[bot] commented 7 months ago

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