feat: Add option to generate all available schemas#5304
Conversation
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
✅ Deploy Preview for redux-starter-kit-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
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 8e61ec5:
|
|
Looks like the "are-the-types-wrong" check is failing, something about reading a |
This is related to arethetypeswrong/arethetypeswrong.github.io#258 and 101arrowz/fflate#258. It was recently resolved by arethetypeswrong/arethetypeswrong.github.io#261, and the fix was released in |
I often run into situations where my server will emit objects over WebSocket but not via any HTTP endpoint. I can add said objects to my OpenAPI schema just fine, but RTK codegen only exports the types that are referenced in endpoint definitions. This PR fixes that by allowing the developer to opt-in to exporting all available schemas from the OpenAPI spec.
Any comments are appreciated!
Closes #5010