-
Notifications
You must be signed in to change notification settings - Fork 279
Closed
Description
Describe the bug
Filtering OpenAPI spec by a Postman collection fails with the following error:
Could not transform the document, reason: Object reference not set to an instance of an object.
To Reproduce
- Download Graph openapi.yaml
- Create a Postman collection with some endpoint
hidi transform -d openapi.yaml -c collection.json --co
Expected behavior
Filtered collection
Additional context
Error is caused by a null reference here:
| if (!paths.ContainsKey(path)) |
This stems from initializing the requestUrls as null here:
| Dictionary<string, List<string>> requestUrls = null; |
To fix this, we'd need to instantiate requestUrls as an empty Dictionary. If you're okay with this proposal I'd be happy to submit a PR.
Metadata
Metadata
Assignees
Labels
No labels
