openapi-to-postman icon indicating copy to clipboard operation
openapi-to-postman copied to clipboard

Feature Request - Link the collection with environment variable via extensions

Open raghavgarg1257 opened this issue 3 years ago • 1 comments

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

raghavgarg1257 avatar Dec 15 '21 10:12 raghavgarg1257

@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.

akshaydeo avatar Feb 07 '23 09:02 akshaydeo