Replies: 1 comment
-
|
@CIP43R I would suggest calling your swagger with auth before return the config |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Right now, there's only the option to set the path to an external openAPI specification. However, if the endpoint requires authentication, kubb will throw an error, because it cannot load the schema.
It'd be amazing if we could just add headers to the input option like so:
and then the headers will just be used for the initial fetch of the schema
I know it's kind of an edge case, since you'd usually generate the schemas from a local backend, but in my case, we only have access to an already existent API that we don't have access to code-wise.
Beta Was this translation helpful? Give feedback.
All reactions