Skip to content

Add command line support for slicing by Postman collections #650

@darrelmiller

Description

@darrelmiller

Add parameter to hidi to accept Postman collection as filter:

hidi transform --filterByCollection 'mycollection.json' --input 'openapi.yaml'  --output 'smallOpenApi.yaml'

  • Create OpenAPI Tree from input OpenAPI
  • Parse the collection into a JsonDocument (System.Text.Json)
  • Get list of all paths and methods in collection document
  • For Each path/method find Operation in OpenAPI Tree, and add to new OpenAPI document
  • Output filtered OpenAPI document.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions