postmanlabs / swagger2-to-postman

Converter for swagger 2.0 JSON to Postman Collection
Apache License 2.0
120 stars 56 forks source link

Swagger Resource-level parameters are not added to the sub-Operations requests in Postman collections. #48

Open davidjgonzalez opened 5 years ago

davidjgonzalez commented 5 years ago

Given a swagger spec that defines the parameters at the Resource level (/accounts/{id}) the Postman collection does not add the Resource parameters to the Postman request.

For example, give a swagger spec that looks like:

'/accounts/{id}':
    parameters:
      - $ref: '#/parameters/id'
      - $ref: '#/parameters/authorization'
    get:
      operationId: get_account_by_id
      summary: Lookup an account by ID.
      ...   

The Postman requests for GET /account/{id} will not have the Authorization parameter added to it, since its set outside the "get" (operation level).