openapi-ts
openapi-ts copied to clipboard
Config for pascal case naming of enums does not work
Description
When setting name: 'PascalCase' in the types section of the config, it still preserves the name of the Enums.
May be related to https://github.com/hey-api/openapi-ts/issues/558
Reproducible example or configuration
export default defineConfig({
client: "@hey-api/client-fetch",
input: "api.json",
output: {
path: "src-generated/",
format: "prettier",
},
schemas: false,
types: {
dates: "types+transform",
enums: "javascript",
// the problem
name: "PascalCase",
},
});
A stackblitz example: https://stackblitz.com/edit/hey-api-client-fetch-example-ycq6mm?file=src%2Fclient%2Ftypes.gen.ts
OpenAPI specification (optional)
No response
System information (optional)
No response
Start a new pull request in StackBlitz Codeflow.
I also stumpled on that one, it seams not a big deal to me