Skip to content

Adds --filterByTags Command option - #639

Merged
Darrel (darrelmiller) merged 16 commits into
vnextfrom
mk/add-filter-by-tags
Nov 9, 2021
Merged

Darrel (darrelmiller) merged 16 commits into
vnextfrom
mk/add-filter-by-tags

Conversation

@MaggieKimani1

@MaggieKimani1 Maggie Kimani (MaggieKimani1) commented Oct 26, 2021 •

Copy link
Copy Markdown
Contributor

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
Darrel (darrelmiller) merged commit 6922d61 into vnext Nov 9, 2021
@MaggieKimani1
Maggie Kimani (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

3 participants