Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Config for pascal case naming of enums does not work #1134

Open
primeapple opened this issue Oct 10, 2024 · 1 comment
Open

Config for pascal case naming of enums does not work #1134

primeapple opened this issue Oct 10, 2024 · 1 comment
Labels
bug 🔥 Something isn't working

Comments

@primeapple
Copy link

primeapple commented Oct 10, 2024

Description

When setting name: 'PascalCase' in the types section of the config, it still preserves the name of the Enums.

May be related to #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 primeapple added the bug 🔥 Something isn't working label Oct 10, 2024
Copy link

stackblitz bot commented Oct 10, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🔥 Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant