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

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

Open
hadrian625 opened this issue Sep 6, 2024 · 1 comment

Comments

@hadrian625
Copy link

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';
}

@phryneas
Copy link
Member

phryneas commented Sep 6, 2024

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
Projects
None yet
Development

No branches or pull requests

3 participants