You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When a header is included as part of the securitySchemes in OpenAPI 3.0 it is correctly added to a collection generated from that schema. However, documentation generated from that collection does not include the header in code examples as it should.
Headers ARE included in documentation code examples for collections that are not generated from API schema.
To Reproduce
Steps to reproduce the behavior:
Create an OpenAPI 3.0 schema and include a security scheme with the "type: apiKey", a name, and "in: header".
Add the security scheme to the requests in the API schema
Save the schema in Postman
Generate a collection
Verify that the header is part of the requests in the collection
From the collection menu select "Publish docs"
Preview the documentation and observe that the header is missing from the code examples/snippets
Expected behavior
When publishing documentation from a collection that is created in Postman and not generated from OpenAPI 3.0 schema the Header IS included in the code example/snippet
Screenshots
App information (please complete the following information):
App Type: Native App
Postman Version: 7.15
OS: macOS Mojave 10.14.5
The text was updated successfully, but these errors were encountered:
@raja@jsooter This is a bug with the OpenAPI -> Collection converter. The generated collection has the API Key header in the root request, but not in the example request. The latter is what's used to generate the code snippet.
Describe the bug
When a header is included as part of the securitySchemes in OpenAPI 3.0 it is correctly added to a collection generated from that schema. However, documentation generated from that collection does not include the header in code examples as it should.
Headers ARE included in documentation code examples for collections that are not generated from API schema.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
When publishing documentation from a collection that is created in Postman and not generated from OpenAPI 3.0 schema the Header IS included in the code example/snippet
Screenshots
App information (please complete the following information):
The text was updated successfully, but these errors were encountered: