Open yordis opened 3 years ago
Reponses, parameters and requestBodies are all in the services @yordis
@ferdikoomen what I am trying to say is that we import those types from the services files so you can tell what types are shared.
Unless I am misunderstanding what you mean.
@yordis Sorry i did get what you meant, but its clear now. I added the story to the roadmap, i'm working on the @next version and will include the shared definitions from the different locations
Has there been progress on this issue? I'm hoping to be able to structure our spec to the complete standard (with requests and responses laid out explicitly) but the specs under "requestBodies" and "responses" are not generated as types (the service file references an object not created under the "models" directory
PR is merged that fixed part of this issue, thanks @kraenhansen
Any update on generating types for components/requestBodies and components/responses?
@JeffJassky @nicolas-chaulet/openapi-typescript-codegen
generates types for the whole options object which may contain other fields besides request bodies. Is that what you need?
Describe the solution you'd like As of today, the package only generate types for
schemas
but they are missing some other types: