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

feat: filterEndpoints option for rtkq-codegen-openapi #4292

Closed

Conversation

sebws
Copy link
Contributor

@sebws sebws commented Mar 22, 2024

Add an option to filter endpoints out for RTK Query codegen for OpenApi schemas.

Both the path parameter and the body parameter aren't included in this, but could possibly be if it is thought that that would be helpful. I wasn't sure they would need to be filtered since they're less likely than other locations to be auto-added by a middleware.

This means it can filter out from the query, header, or cookie as seen in "Parameter Locations" in the OpenAPI spec

Inspired by my issue #4285 and another relevant issue #3006

Copy link

codesandbox bot commented Mar 22, 2024

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

Copy link

codesandbox-ci bot commented Mar 22, 2024

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 99dac34:

Sandbox Source
rsk-github-issues-example Configuration
@examples-query-react/basic Configuration
@examples-query-react/advanced Configuration
@examples-action-listener/counter Configuration
rtk-esm-cra Configuration

Copy link

netlify bot commented Mar 22, 2024

Deploy Preview for redux-starter-kit-docs ready!

Name Link
🔨 Latest commit 99dac34
🔍 Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/65fd12db2bd9bc0008f8c94a
😎 Deploy Preview https://deploy-preview-4292--redux-starter-kit-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@sebws sebws force-pushed the feat/rtkq-openapi-codegen-filterEndpoints branch from 4c3a2d7 to 99dac34 Compare March 22, 2024 05:10
@sebws sebws closed this Mar 22, 2024
@sebws sebws deleted the feat/rtkq-openapi-codegen-filterEndpoints branch April 17, 2024 13:17
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.

None yet

1 participant