openapi-typescript-codegen icon indicating copy to clipboard operation
openapi-typescript-codegen copied to clipboard

Generates a "string" model

Open Fishwaldo opened this issue 3 years ago • 0 comments

Hi, Using your tool as such openapi --input http://localhost:8888/openapi.json --output ./src/generated --client axios --useOptions --exportSchemas true

But its creating a "string" model for some reason:

image

Deleting this model from the generated sources (and removing the imported statements in other models) allows all to work fine. I'm really not sure if its a error with the schema I'm sourcing from or?

Attached is the schema its generated from to duplicate this.

openapi.zip

Fishwaldo avatar Aug 15 '22 05:08 Fishwaldo