Export component's and path's types with friendly names #1598
Labels
enhancement
New feature or request
openapi-ts
Relevant to the openapi-typescript library
PRs welcome
PRs are welcome to solve this issue!
Uh oh!
There was an error while loading. Please reload this page.
Description
First of all, I want to thank you for this great lib! :)
To make it even better, I suggest exporting component types and paths like open-api-generator does.
Proposal
The first attempt to implement this is here #1260.
The idea is to generate types like this:
Components:
Paths:
It would be also nice to generate types for
requestBody
andresponses
, but not sure how to properly handle content type (application/json
,application/yaml
etc.)We also need to resolve the duplication issue described in this comment #1260 (comment). This can be solved by adding a number as a suffix to the duplicate name.
Checklist
The text was updated successfully, but these errors were encountered: