Missing the security scheme definition & optional organization header
Related to: #25
According to the Authorization section of the API document, to make an API call it requires one mandatory Authorization header and an optional OpenAI-Organization header.
After this PR, the OpenAPI document has:
- The mandatory
Authorizationheader. - The optional
OpenAI-Organizationheader on each endpoint/operation.
Related to #10 and #12 but this PR has broader coverage.
Hi @justinyoo this is great I think.
What do you think about storing the parameter definition in components.parameters in order to avoid duplication?
https://swagger.io/docs/specification/components/
Hi @justinyoo this is great I think.
What do you think about storing the parameter definition in components.parameters in order to avoid duplication?
https://swagger.io/docs/specification/components/
@om4james Good idea! I refactored all the existing parameters as well to keep the document structure consistent.
Hey Justin, thanks for flagging, I am working on a PR to add the API key and optional org header! Will update you here when it is done.