update to OpenAPI 3.1.x #818
Replies: 8 comments 7 replies
-
Actually supporting the features of 3.1.0 is probably a long way off since there are still 3.0 features incomplete 😬. Reading the spec and just handling any breaking changes for the 3.0 features we do support is probably relatively easy, just a time investment. I'm unlikely to have the time to do that anytime soon, but would welcome a PR from someone who does. |
Beta Was this translation helpful? Give feedback.
-
The changes are not too major, just moving in line with JSON Schema for the schema objects and a few simplifications to examples. https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0 |
Beta Was this translation helpful? Give feedback.
-
This is beginning to become much more important, as popular Python frameworks such as FastAPI, now generate only an OpenAPI 3.1.0 schema as of 0.99.0 released June 2023: |
Beta Was this translation helpful? Give feedback.
-
I'm trying to come up with a burndown list of things that need to be supported for OpenAPI 3.1.0. Anything that is a breaking change, we're going to have to deal with before we allow OpenAPI 3.1 documents and spit out tons of errors. Anything that is a feature, we can leave for later. Must havesI will accept a PR which allows 3.1.* documents if it also:
I think those are all the things required to support 3.1, and everything else can be treated as a new feature request in the future. Please comment here if there is something else that is required. I'd also love to see some testing of the eventual PR with real-world 3.1.0 servers if possible. Non-goals
|
Beta Was this translation helpful? Give feedback.
-
Hey all, #856 still needs some polish, but it should be functional enough to test. I would love it if folks would test it with their real schemas and make sure it works well (both 3.0 and 3.1). |
Beta Was this translation helpful? Give feedback.
-
Just for tracking purposes, another popular OpenAPI server (this one is for the Django ecosystem) recently added support for OpenAPI 3.1: |
Beta Was this translation helpful? Give feedback.
-
Support added in 0.17! |
Beta Was this translation helpful? Give feedback.
-
Contratulations! That's a huge milestone. I've updated you on OpenAPI Tools, but can you add the appropriate GitHub tags so you'll show up properlty on
|
Beta Was this translation helpful? Give feedback.
-
Im trying to upgrade to openapi 3.1.0 to be able to use
type: mutualTLS
in the security scheme definition, and it throws an error that the version is not recognised.Since the 3.1.0 upgrade has been around for quite some time, will it be supported anytime soon?
Screenshot of error below.

Beta Was this translation helpful? Give feedback.
All reactions