Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
OpenAPI v3 importer #1430
The issue over at #281 was a catch-all for Swagger/OpenAPI, and some folks were after OpenAPI v3 support. This PR addresses that.
This PR doesn't try to implement the complete spec at all, but it does do the bulk of the work for the import. I'd consider it complete at a functional level, and we could accept future PRs for enhancements. Open to suggestion though :)
As this is a first step, I based my development on the exist fixtures. My testing strategy was to convert swagger2 test input to openapi3, and use the same outputs for verification. I did that via:
So, with this, we retain the same functionality that we had. Two output JSONs needed updating, but I suspect it might have been a bug in the swagger2 implementation (when there was an empty body, it was still specifying a