Skip to content

@rtk-query/codegen-openapi documentation is misleading in regard to endpointOverrides -> parameterFilter #4612

@hadrian625

Description

@hadrian625

In the docs for endpointOverrides https://redux-toolkit.js.org/rtk-query/usage/code-generation#endpoint-overrides it is mentioned that a parameterFilter exists which would allow filtering out paramters not desired from the openapi specs. But no such field exists.
Is this a mistake in the documentation or the documentation is showing something that is in development right now?

I am using @rtk-query/codegen-openapi 1.2.0
I type definition for EndpointOverrides there is only "pattern" and "type"
export interface EndpointOverrides {
pattern: EndpointMatcher;
type: 'mutation' | 'query';
}

Activity

phryneas

phryneas commented on Sep 6, 2024

@phryneas
Member

I think this is something that was already merged, but not released yet. Could you try the latest alpha release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @markerikson@phryneas@hadrian625

        Issue actions

          @rtk-query/codegen-openapi documentation is misleading in regard to endpointOverrides -> parameterFilter · Issue #4612 · reduxjs/redux-toolkit