postmanerator icon indicating copy to clipboard operation
postmanerator copied to clipboard

Failed to parse collection file: json: cannot unmarshal string

Open Sanix-Darker opened this issue 4 years ago • 2 comments

After export collection v2 i executed this command : ./postmanerator -output=./doc.html -collection=/path/to/project/collectionv2.json

and then had this error :

Failed to parse collection file: json: cannot unmarshal string into Go struct field .url of type struct { Raw string "json:\"raw\""; Variable []postman.collectionV210KeyValuePair "json:\"variable\"" }

Can you help please ?

Sanix-Darker avatar Mar 12 '20 21:03 Sanix-Darker

Same here

yanuarxnc avatar Mar 27 '20 05:03 yanuarxnc

The error says: Variable []postman.collectionV210KeyValuePair

See that V210? You should export your postman collections as 2.1 version