Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can it support generic syntax #182

Open
taajason opened this issue Jun 30, 2023 · 1 comment
Open

Can it support generic syntax #182

taajason opened this issue Jun 30, 2023 · 1 comment

Comments

@taajason
Copy link

taajason commented Jun 30, 2023

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",

@taajason taajason changed the title Generate a large OpenAPI document into multiple files based on different tags Can it support generic syntax Jun 30, 2023
@fabien0102
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants