Skip to content

Not able to create Mutation from api its GET anymore on operation level #3358

Description

@maapteh

Description

We have queries from api contracts, which we override to a mutation in our orval config. Somehow the POSTS, are being changable into Query. But a query into a Mutation is not working.

output: {
  override: {
    reprint: {
      query: {
        useMutation: true,
      },
    },
    search: {
      query: {
        useQuery: true,
      },
    },

So the operation search did indeed become a query, but the operation reprint stayed a query and not a mutation.

I have no clue since which version, upgrading from v7 now to latest (breaking behaviour not mentioned in v8 migration) :(

#3323

Output client

axios

Configuration (orval.config)

8.10.0

Environment

Run the command above and paste the output here.

Expected behavior

No response

Actual behavior

No response

OpenAPI document (minimal, if applicable)

openapi: 3.0.3
info:
  title: Demo
  version: 0.0.0
paths: {}

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    axiosAxios related issuetanstack-queryTanStack Query related issue

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions