Hello,
I have defined an API spec using API Designer. I specified a securitySchema and applied it to the endpoint. When I generate a collection, the request does not have a header of āAuthorizationā that I expected.
What I am desiring to happen, is when I generate a collection, I want a request to have a Header key of āAuthorizationā and a Header value of "{{ACCESS_TOKEN}}. I am seeing a header key of āAuthorizationā generated in the request but with no value.
Is there something I need to do differently to make this happen? I figured the securitySchema way was the right way. The security schema defined below is what is generated when I import an OpenAPI 3.0 spec from AWS API Gateway with this header set.
paths:
/sample:
get:
summary: Sample
operationId: sample
security:
- authorizer: []
...
components:
...
securitySchemes:
authorizer:
type: "apiKey"
name: "Authorization"
in: "header"
x-amazon-apigateway-authtype: "custom"
The corresponding request generated has the following in the Header.
When validating API spec using API Designer to the generated collection without modification, I get the following suggested changes.The āAuthorizationā header generated from spec is now indicating that the collection shouldnāt have the header āAuthorizationā anymore. Seems this feature is not consistent.
Thank you