SmartBear-DevRel / explore-cli

Simple utility CLI for importing and exporting data to and from SwaggerHub Explore
https://www.nuget.org/packages/Explore.Cli
Apache License 2.0
5 stars 4 forks source link

Issue importing postman collections #33

Closed Nogradi123 closed 2 months ago

Nogradi123 commented 4 months ago

Currently getting this error when attempting to import any collection that has a description for any endpoint parameters.

An error occurred: The JSON value could not be converted to Explore.Cli.Models.Postman.Description. Path: $.item[0].item[0].request.description | LineNumber: 41 | BytePositionInLine: 69.

Here is the attached file for a sample postman collection where the error is occuring : API_ documentation_postman_collection.json

YOU54F commented 2 months ago

👋🏾

Hey @Nogradi123,

Thanks for raising and providing a Postman collection that triggers the issue.

I have been able to replicate and fix and will raise a PR shortly

frankkilcommins commented 2 months ago

Fixed in v0.6.1 Nuget: https://www.nuget.org/packages/Explore.Cli GitHub: https://github.com/SmartBear-DevRel/explore-cli/releases/tag/0.6.1

Thanks @YOU54F