Skip to content

Conversation

@MaggieKimani1
Copy link
Contributor

@MaggieKimani1 MaggieKimani1 commented Oct 26, 2021

This PR proposes:

  • Adding a --filterByTag command option to the transform command in the commandline tool
  • Updates the OpenApiFilterService with logic for slicing an OpenApiDocument based on the tags provided
  • Adding tests to validate for filtering by tags

Testing Instructions

  • Build the project and its dependencies by running the .\build.cmd file
  • Reinstall the openapi-parser tool locally by running the .\install-tool.ps1 script
  • Invoke the tool by running the .\artifacts\openapi-parser.exe file and call the transform command
  • To use the new command option, append the --filterByTags "tags" parameter to the transform command
    E.g: .\artifacts\openapi-parser.exe transform --input Mail.yml --format yaml --output Mail2.yml --version OpenApi3_0 --filterByTags users.mailFolder

Fixes #629

@darrelmiller darrelmiller merged commit 6922d61 into vnext Nov 9, 2021
@MaggieKimani1 MaggieKimani1 deleted the mk/add-filter-by-tags branch November 9, 2021 20:27
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 parameter to command line tool for --filterByTag

4 participants