bravado icon indicating copy to clipboard operation
bravado copied to clipboard

Any plans to support OpenAPI 3.0

Open barakalon opened this issue 7 years ago • 11 comments

OpenAPI 3.0 was released: https://github.com/OAI/OpenAPI-Specification

Are there any plans to add support for this new version?

barakalon avatar Jul 26 '17 20:07 barakalon

There are no plans currently to work on supporting version 3. That said, if you're interested please go ahead and create a pull request!

sjaensch avatar Jul 27 '17 09:07 sjaensch

Figured - thanks!

barakalon avatar Jul 27 '17 15:07 barakalon

Can anyone recommend any bravado alternative that supports OpenAPI 3.0?

advance512 avatar Apr 21 '19 14:04 advance512

Here's the best of the packages that I've collected while wandering around the jsonschema and openapi landscape:

  • connexion
  • python-jsonschema-objects
  • fastapi -- uses python classes and typing to infer openapi directly (also see molten)
  • postgrest (yes, spelled correctly) -- awesome schema-to-rest API translation, introspected from db schema, with impressive support for pushing authn/z to db, schema versioning, and more

Perhaps one of these will work for your goals.

reece avatar Apr 21 '19 18:04 reece

@advance512 https://github.com/swagger-api/swagger-codegen is probably the most popular tool for generating client code from OpenAPI specifications. It can generate a python client based on OpenAPI 3.

barakalon avatar Apr 22 '19 23:04 barakalon

It looks like openapi3 might be a viable replacement, as it can be used as a client. You have to manually download the schema and load it as JSON/YAML, but once loaded in the library can make API calls as defined by the spec.

mst-ableton avatar Oct 06 '19 23:10 mst-ableton

What's the status here? Is bravado deprecated due to state of the art being OpenAPI 3?

HWiese1980 avatar Nov 08 '19 12:11 HWiese1980

@HWiese1980 the fact that there is an OpenAPI 3.0 spec doesn't make this project deprecated. It just means you'll have to use something else to interact with OpenAPI 3 specs.

sjaensch avatar Nov 11 '19 10:11 sjaensch

What's keeping Bravado from becoming OpenAPI 3 compatible?

HWiese1980 avatar Nov 12 '19 16:11 HWiese1980

@HWiese1980 the code that does it - feel free to open a pull request! 😄

sjaensch avatar Nov 14 '19 14:11 sjaensch

What's keeping Bravado from becoming OpenAPI 3 compatible?

If you or your organization, or any third-party organizations don't have the resources or interest in making this library openAPI 3 compatible, it never will be. Yelp won't have the resources to do it, unless someone takes over the codebase entirely and works on their own fork, this upgrade is too big to happen here.

I want to thank Yelp and its tremendous contributions to this project, but it is time to move away from Bravado. It is almost 2020, and no new projects should be writing specs in v2, it might end up similar to be the python 2->3 dilemma. Will bravado and swagger (v2) be relevant for the next while? Absolutely. Will it die? Yes.

candig-bc-bot avatar Dec 19 '19 18:12 candig-bc-bot