redux-toolkit icon indicating copy to clipboard operation
redux-toolkit copied to clipboard

feat: add filterParameters option for rtkq-codegen-openapi

Open sebws opened this issue 1 year ago • 3 comments

Add an option to filter parameters 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

sebws avatar Mar 22 '24 05:03 sebws

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders
Open Preview

codesandbox[bot] avatar Mar 22 '24 05:03 codesandbox[bot]

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 2d7f3f36103a3a607a018a2125c511b2d8c39d42:

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

codesandbox-ci[bot] avatar Mar 22 '24 05:03 codesandbox-ci[bot]

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

Name Link
Latest commit 2d7f3f36103a3a607a018a2125c511b2d8c39d42
Latest deploy log https://app.netlify.com/sites/redux-starter-kit-docs/deploys/65fd139a629d6400085df537
Deploy Preview https://deploy-preview-4293--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.

netlify[bot] avatar Mar 22 '24 05:03 netlify[bot]

going to open up a new PR with this as an addition to overrideEndpoints

sebws avatar Mar 26 '24 07:03 sebws