Skip to content

Parse Nested postman collections - #794

Merged
Darrel (darrelmiller) merged 11 commits into
vnextfrom
enhancement/nested-postman-collection
Mar 27, 2022
Merged

Darrel (darrelmiller) merged 11 commits into
vnextfrom
enhancement/nested-postman-collection

Conversation

@MaggieKimani1

@MaggieKimani1 Maggie Kimani (MaggieKimani1) commented Mar 15, 2022 •

Copy link
Copy Markdown
Contributor

Fixes #777,
Fixes #787

This PR:

  • Refactors the ParseJsonCollectionFile logic to use a recursive solution that helps parse single-level or multi-level deeply nested item arrays containing the request object from which we extract the request URLs.
  • Adds unit tests for both single-level nested item arrays and double-level nested arrays for validation
  • Logs a warning message to the console when a URL in the postman collection isn't present in the input OpenApi document instead of terminating the entire process
  • Updates the conditional operator to infer OpenApiSpecVersion from the diagnostics object if a user doesn't supply the version parameter

@MaggieKimani1 Maggie Kimani (MaggieKimani1) changed the title Parse Nested postman collection Parse Nested postman collections Mar 15, 2022
@darrelmiller
Darrel (darrelmiller) merged commit 976b5cc into vnext Mar 27, 2022
@darrelmiller
Darrel (darrelmiller) deleted the enhancement/nested-postman-collection branch March 27, 2022 18:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

2 participants