Skip to content

Conversation

@Azuky
Copy link
Contributor

@Azuky Azuky commented Dec 20, 2025

Update tags-mode and split-tags-mode writers to use the provided naming convention from the config file instead of using camel case always.

Example configuration used in samples/react-query/basic/orval.config.ts:

import { defineConfig } from 'orval';

export default defineConfig({
  petstore: {
    output: {
      mode: 'tags-split',
      target: 'src/api/endpoints',
      client: 'react-query',
      httpClient: 'axios',
      mock: true,
      prettier: true,
      clean: true,
      namingConvention: 'kebab-case'
    },
    input: {
      target: './petstore.yaml',
    },
  },
});

Result previous to this fix:
image

Result after this fix:
image

Closes #2253

@melloware melloware merged commit b5eba61 into orval-labs:master Dec 20, 2025
2 checks passed
melloware added a commit that referenced this pull request Dec 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

File names are not affected by namingConvention when using "tags" mode

2 participants