Skip to content

Conversation

@MaggieKimani1
Copy link
Contributor

This PR:

  • Adds a --filterByCollection command option to the transform command
  • Updates the OpenApiFilterService with logic for slicing OpenAPI documents based on postman collections.
  • Adds tests to validate for filtering by postman collections
Testing Instructions:
  • To use the new command option, append the --filterByCollection "file.json" parameter to the transform command
    E.g:
    transform --input C:\Users\Downloads\response.yaml --output C:\Users\source\repos\response2.yml --format yaml --version OpenApi3_0 --filterByCollection C:\Users\Downloads\Graph-Collection-43402ca3-f018-7c9b-2315-f176d9b171a3.postman_collection.json

Fixes #650

Add logic for parsing the JSON collection file, creating an OpenApiTree from the input OpenApi doc and getting a list of OpenApiOperations from the tree for urls in the collection
@darrelmiller darrelmiller merged commit 77ce0bc into vnext Jan 19, 2022
@darrelmiller darrelmiller deleted the mk/filter-by-collection branch January 19, 2022 14:21
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.

Add command line support for slicing by Postman collections

4 participants