luckymarmot / API-Flow

Universal data structure and converter for API formats (Swagger, RAML, Paw, Postman…)
MIT License
193 stars 24 forks source link

Support URL Objects #145

Open philsturgeon opened 6 years ago

philsturgeon commented 6 years ago

At the day job we're programmatically converting postman files found in various repos into OpenAPI. I can advise the teams to improve their Postman collections, but do not have direct control over them, and need the ability to repeatedly convert these collections, with only increasing quality. :)

We have some hand-made collections where the output is URLs all showing the root path /.

screen shot 2017-11-30 at 1 17 47 pm

That has some further weird knock-on effects:

screen shot 2017-11-30 at 1 18 53 pm

The issue seems to happen if there are some missing properties in the Postman URL Object, but if 'raw' is present why not just use that.

The main commit here is https://github.com/luckymarmot/API-Flow/pull/145/commits/655b752ebe3970f9271469a85097e7995db98b60, but there's a bunch of other changes floating around. Please merge some of the other PRs I've made and it'll start to look less messy around here :D

philsturgeon commented 6 years ago

Done! Ready! Merge me :D

philsturgeon commented 6 years ago

This has a bunch of extra commits, and I'll tidy them once somebody has started merging some of my bajillion open unanswered PRs. For now the megabranch will continue.