Closed esfox closed 3 weeks ago
This will be fixed as part of the parser release – thank you for your patience!
Hey @esfox, this is fixed in the experimental parser https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/test/__snapshots__/3.0.x/enum-escape/types.gen.ts
You can learn more about the new parser in the docs https://heyapi.dev/openapi-ts/configuration.html#parser
Description
Single quotes in an enum in a schema do not escape properly so it breaks the generated type.
Expected
Actual
Reproducible example or configuration
No response
OpenAPI specification (optional)
System information (optional)
No response