Open primeapple opened 1 month ago
When setting name: 'PascalCase' in the types section of the config, it still preserves the name of the Enums.
name: 'PascalCase'
types
May be related to https://github.com/hey-api/openapi-ts/issues/558
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
No response
Start a new pull request in StackBlitz Codeflow.
Description
When setting
name: 'PascalCase'
in thetypes
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
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