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

Feature: Support Swagger Parser options in code generation

Open mchill opened this issue 2 years ago • 0 comments

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.

mchill avatar Aug 29 '22 23:08 mchill