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.