Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request - Link the collection with environment variable via extensions #439

Open
raghavgarg1257 opened this issue Dec 15, 2021 · 1 comment
Labels
auth Issue relates to Authorization of generated collection/request. feature New feature request, accepted for probable development importer

Comments

@raghavgarg1257
Copy link
Contributor

raghavgarg1257 commented Dec 15, 2021

We can add support for custom fields like x-env-var, so users can add something like

securitySchemes:
   PostmanAccessTokenAuth:
      type: apiKey
      in: header
      name: x-access-token
      x-env-var: {{env_var_name}}

And instead of adding a placeholder value, we can add this variable if available.

This could be a way to link the generated collection with the environment users provide in the API Version.

Ref, OpenAPI 3.0.3 extensions

@VShingala VShingala added improvement Issue is for improvement of existing flow. auth Issue relates to Authorization of generated collection/request. labels Jan 13, 2023
@akshaydeo akshaydeo added feature New feature request, accepted for probable development and removed improvement Issue is for improvement of existing flow. labels Feb 7, 2023
@akshaydeo
Copy link

@raghavgarg1257, A quick question for you, How would this specification be used outside the Postman ecosystem? I am presuming that this open API spec is generated/written outside the Postman ecosystem and is being used to generate a collection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
auth Issue relates to Authorization of generated collection/request. feature New feature request, accepted for probable development importer
Projects
None yet
Development

No branches or pull requests

3 participants