thedevsaddam / docgen

Transform your postman collection to HTML/Markdown documentation
MIT License
967 stars 134 forks source link

2020/11/17 21:24:17 parsing json filejson: cannot unmarshal string into Go struct field Request.url of type collection.URL #43

Open zhy1 opened 3 years ago

zhy1 commented 3 years ago

2020/11/17 21:24:17 parsing json filejson: cannot unmarshal string into Go struct field Request.url of type collection.URL

arturgoms commented 3 years ago

@zhy1 did you generated the json from post using 2.1 version?

christianklemp-imt commented 3 years ago

I get this same error when attempting to generate from a backup JSON file that I have syncing to a repo. Would be great if this supported generating from backups so it could be automated whenever there's an update to a collection.

mayowDev commented 3 years ago

SOLVED:- i had the same error. But exporting the postman collection with version 2.1 (recommended) , solved the error is my case.

GoodnessEzeokafor commented 3 years ago

SOLVED:- i had the same error. But exporting the postman collection with version 2.1 (recommended) , solved the error is my case.

This actually works

smark-ARK commented 1 year ago

SOLVED:- i had the same error. But exporting the postman collection with version 2.1 (recommended) , solved the error is my case.

Worked For me Too. If you have end level nested folders, it's better to seperate them.

martin-creator commented 1 year ago

Can someone help me out, getting this error: 2023/10/25 11:50:49 parsing json filejson: cannot unmarshal object into Go struct field Field.item.item.response.header.description of type string

kriskate commented 8 months ago

Having the same issue, with exported V2.1 from Postman.

kriskate commented 8 months ago

Turns out, I was still having one of the standard examples from Postman inside one of my collections Removing that made it work; unfortunately, there is no undo option so I can't post what the request looked like.