openapi-typescript
openapi-typescript copied to clipboard
Option to add JSDoc to generated enums.
Description
Currently when you generate the types with the below configuration, you'll also generate the accompanying enums. However, when some of the enums are marked as deprecated in the spec, it fails to translate this to the generated enum.
Proposal
The generated enums which are marked as deprecated in the spec are generated with the accompanying JSDoc. This change would be for both the CLI and the Node API and can me an extra option, with the default being true.
Extra
- [x] I’m willing to open a PR (see CONTRIBUTING.md)