Open brodo opened 1 year ago
@brodo I had the same problem yesterday and found it was because models are only generated for schemas in #/components/schemas
. Bundling can do that for you, but seems to be something you have to do as a separate step unless there's a bundle option in this library that I missed.
@brodo I had the same problem yesterday and found it was because models are only generated for schemas in
#/components/schemas
. Bundling can do that for you, but seems to be something you have to do as a separate step unless there's a bundle option in this library that I missed.
How exactly do you mean? I have a similar issue, mine generates the models but they are all empty types.
export type UserProfile = {}
in models/UserProfile.
Please can you explain what you meant above?
Do you have any idea why mine might be working this way?
I think the issue I created #1475 is a duplicate of this but the description might make it easier to work on
Description
The
models
-directory is is empty which leads to the client not working. I have linted my spec using Spectral and can render it using Elements therefore I assume this is a bug in openapi-typescript-codegen.How to reproduce
The
./generated/models/
folder will be empty.