Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support URL Objects #145

Open
wants to merge 34 commits into
base: develop
Choose a base branch
from

Conversation

philsturgeon
Copy link

@philsturgeon philsturgeon commented Nov 30, 2017

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 655b752, 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

JonathanMontane and others added 18 commits August 4, 2017 10:51
Added link to documentation in README
added support for custom headers for api key auths
…nfigs

fixed missing postman loader, parser, and serializers from configs
loaders now defaults to fsResolution instead of httpResolution
Still not entirely working but its closer
philsturgeon and others added 11 commits December 5, 2017 13:07
The README talked a bit too much about Paw, which is not what this library is going to be used for by the community at large.

It also focused on compile instructions over recommending npm/yarn installation. ALSO the compile instructions were invalid, and talked about make install (doesnt exist!).
Linked to issues where they exist, and removed CLI usage (as it does not exist).
A few forks were updating these links and causing conflicts, so lets just use local links :D
Empty string is valid, null is invalid.
@philsturgeon philsturgeon changed the title Paths are all being placed under root when converted to swagger Support Postman Collection v2.1.0 URL Objects Jan 16, 2018
@philsturgeon
Copy link
Author

Done! Ready! Merge me :D

URL objects with raw but not a lot else were causing empty URLs, which shoved everything into /
instead of gracefully figuring it out. Now if a URL is an object with
"raw" it'll use the raw string.
@philsturgeon philsturgeon force-pushed the bug/case-of-the-missing-urls branch 2 times, most recently from b415b9b to 655b752 Compare January 17, 2018 00:09
@philsturgeon philsturgeon changed the title Support Postman Collection v2.1.0 URL Objects Support URL Objects Jan 17, 2018
@philsturgeon
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants