postmanlabs / openapi-to-postman

Plugin for converting OpenAPI 3.0 specs to the Postman Collection (v2) format
Apache License 2.0
931 stars 200 forks source link

Fixed issue where Accept header was not present in Example request. #706

Closed VShingala closed 1 year ago

VShingala commented 1 year ago

Problem

This PR fixes issue https://github.com/postmanlabs/postman-app-support/issues/11835, where for generated collection from OpenAPI definition was not containing Accept header correctly in example request. This created certain issues in further flows like mocks.

RCA

We are not adding Accept header in example request similar to as present in request ATM.

Fix

We'll be now adding corresponding Accept header in the example request.