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

Add definition for all components (OpenAPI v3)

Open yordis opened this issue 5 years ago • 7 comments

Describe the solution you'd like As of today, the package only generate types for schemas but they are missing some other types:

  • [x] schemas
  • [ ] responses
  • [ ] requestBodies

yordis avatar Nov 22 '20 07:11 yordis

Reponses, parameters and requestBodies are all in the services @yordis

ferdikoomen avatar Nov 24 '20 19:11 ferdikoomen

@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 avatar Nov 24 '20 20:11 yordis

@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

ferdikoomen avatar Nov 28 '20 09:11 ferdikoomen

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

mversteeg avatar Jul 28 '22 18:07 mversteeg