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

Config for pascal case naming of enums does not work

Open primeapple opened this issue 1 year ago • 1 comments

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

primeapple avatar Oct 10 '24 08:10 primeapple

I also stumpled on that one, it seams not a big deal to me

BierDav avatar Nov 22 '24 15:11 BierDav