Closed alex-aveva closed 1 week ago
I’d be open to this! This is an easy add.
Also if you do submit a PR, then make sure to update the corresponding docs that mention x-enum-varnames
as well.
That's great, I'll create a PR!
I think this issue can be closed. Support for these was originally added in c947515.
This issue is stale because it has been open for 90 days with no activity. If there is no activity in the next 7 days, the issue will be closed.
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.
Description
The most popular (and de-facto standard) .NET Core OpenAPI NSwag package uses the following:
x-enumNames
forx-enum-varnames
x-enumDescriptions
forx-enum-descriptions
Proposal
Adapting the code can be as simple as shown below:
https://github.com/drwpow/openapi-typescript/blob/43b1b69bc26ee333d0fed1f4aa702496c485dc01/packages/openapi-typescript/src/transform/schema-object.ts#L128
Checklist