fabien0102 / openapi-codegen

A tool for generating code base on an OpenAPI schema.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can it support generic syntax

taajason opened this issue · comments

What can I do to keep the generic?

my nestjs project

image

the definition is

image

The generated result is any[][], but not T[]

image

"@nestjs/swagger": "^6.3.0", "next": "13.4.7", "typescript": "5.1.3" "@openapi-codegen/cli": "^2.0.0", "@openapi-codegen/typescript": "^6.2.4",

Hey,
This project is about converting open-api specs to TypeScript, with in mind, you need to export some json or yaml from your nestjs specs.
I never used nestjs but I supposed this is available at http://localhost:3000/api-json (ref: https://docs.nestjs.com/openapi/introduction)

Can you try to see what output this is giving to you with your generic?