redux-toolkit
redux-toolkit copied to clipboard
Feature: Support Swagger Parser options in code generation
Swagger Parser supports an options parameter in its bundle function. RTK Query codegen currently only allows setting the schema url in scemaFile
, but not the additional options parameter.
One use case for supporting this is generating code from private, authenticated swagger specs. Swagger Parser lets you set headers with the resolve.http.headers
option. Without this option, it is impossible to easily configure RTK Query to work with an authenticated url.