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

Option to add JSDoc to generated enums.

Open polaroidkidd opened this issue 9 months ago • 0 comments

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

polaroidkidd avatar Feb 03 '25 17:02 polaroidkidd