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

Changes to enable importing multiple response examples. #350

Open
wants to merge 10 commits into
base: develop
Choose a base branch
from

Conversation

pcgamer1
Copy link
Contributor

@pcgamer1 pcgamer1 commented Mar 30, 2021

Fixes #89.
I had to change the return type of convertToPmResponse, convertToPmResponseBody, convertToPmBodyData to return a list of response bodies.

@VShingala @umeshp7 @abhijitkane Please do have a look. Thanks.

I have also added a test for the same.

Please omit the duplicate commit names, I had not figured out how to run the tests locally at that time.

…sponse, convertToPmResponseBody, convertToPmBodyData now return a list of bodies, changed getExampleData to handle one example at a time.
@pcgamer1 pcgamer1 changed the title Changes to handle multiple response examples. Changes to enable importing multiple response examples. Mar 30, 2021
@Sharath-Postman
Copy link

@meenakshi-dhanani Could you look into this. Cheers

@philipbjorge
Copy link

@pcgamer1 -- Thanks for your hard work on this! Hoping it can make it into the codebase as we'd love this functionality!

@ciromiranda
Copy link

ciromiranda commented Nov 10, 2021

Any chance this could be merged? Thanks.

@racastellanosm
Copy link

Hi, has anyone some idea if this would be merged anytime soon? I have several request examples in my OAS contract and postman-openapi importer doesn't reflect them in the import.

Cann we help unblocking the code of this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Importing Multi-example response
5 participants