-
Notifications
You must be signed in to change notification settings - Fork 49
feat: adding support for uploading and validating Postman collections #669
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
Conversation
| debug(`attempting to oas-normalize ${file}`); | ||
| const oas = new OASNormalize(file, { enablePaths: true }); | ||
| return oas | ||
| .version() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I ended up bringing back .version() in oas-normalize@8.1.0 (readmeio/oas-normalize#227) but slightly changed the original API it had to give us some more information on the file it's been supplied.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Small refactor suggestion below but otherwise LGTM!
Co-authored-by: Kanad Gupta <8854718+kanadgupta@users.noreply.github.com>
🧰 Changes
With v8 of oas-normalize we now have the ability to convert Postman collections to OpenAPI definitions thanks to postman-to-openapi. This work here integrates that work into our API definition upload and validation flow, which means that folks will now be able to upload Postman collections directly into their ReadMe projects.
😎 🛹