You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
OpenAPI version 3.1.0 came with some breaking changes, notably, the introduction of a null type and removal of the nullable attribute.
We can work around this by patching these parts of a 3.1.0 spec to a 3.0.* spec, but i'm concerned about the implication that has on the validity of the document.
Is an extension of progenitor to support OpenAPI 3.1.0 being considered or worked on?
Reacted by Stephen Lacy, Brian Thorne, Dan O'Brien, Matthias Wahl, Mufeez Amjad, krakow10, Rémy Greinhofer, Tim Leslie, Elichai Turkel, David Young and 38 more
Is an extension of progenitor to support OpenAPI 3.1.0 being considered or worked on?
Definitely considered. It's been low priority for us because of the generally slow uptake of 3.1. 3.1 also turns out to contain some extremely complicated features to support in particular with the adoption of JSON Schema 2020-12 and the jsonSchemaDialect property that allows random other schemas to be used instead. In addition the openapiv3 crate doesn't support 3.1--in part because the schemars crate doesn't support 2020-12.
In short: there's an expedient, but imprecise path forward that I've been deferring in the hope of doing the more complete things. Happy to discuss further if that would be helpful.
And I forgot: one important change in 2020-12 is how tuples are represented. Previously it was an array with items and additionalItems. In 2020-12 it became prefixItems and items where items is now always a singleton. It's a change for the better, but is also--obviously--incompatible.
Reacted by Bernardo António Borda d'Água, Dominik Nakamura, Joe Grund, Ralf Grubenmann, 0xevolve, Manel Montilla, Palash Jain, astrary, Terry Drozdowski, narner90 and 1 more
@ahl From looking at schemars, it seems to support 2020-12 now(At least, 2020-12 seems to show up in the example json schema in their README). Would the first step in getting this support in progenitor be updating this long-blocked PR on openapiv3 to the new schemars version?
@balisujohn schemars supports generation of 2020-12 schemas; it removes support for modeling schemas programmatically (which is fine because that wasn't a focus and it didn't do so with particular accuracy). The more significant blocker is support in typify for JSON Schema 2020-12 (or, more accurately, the superset used by OpenAPI 3.1)--that work is ongoing, but relatively low priority for Oxide.
We considered using JSON schemas, but however it wasn't convenient than one schema than Open API. We don't have a crypto wallet to accept the bids/donates, we can get back to you via our discord dming me or @TheTCraft to find a official way of accepting these bids/donations.
looking at it - my original plan was to create a small patch to rewrite the OpenAPI 3.1 to 3.0, but I think bumping schemars on typify is probably necessary
Activity
[-]support breaking changes of OpenAPI 3.1.0[/-][+]Support OpenAPI 3.1.0[/+]ahl commentedon Apr 4, 2024
Definitely considered. It's been low priority for us because of the generally slow uptake of 3.1. 3.1 also turns out to contain some extremely complicated features to support in particular with the adoption of JSON Schema 2020-12 and the
jsonSchemaDialectproperty that allows random other schemas to be used instead. In addition theopenapiv3crate doesn't support 3.1--in part because theschemarscrate doesn't support 2020-12.In short: there's an expedient, but imprecise path forward that I've been deferring in the hope of doing the more complete things. Happy to discuss further if that would be helpful.
ahl commentedon Apr 4, 2024
And I forgot: one important change in 2020-12 is how tuples are represented. Previously it was an array with
itemsandadditionalItems. In 2020-12 it becameprefixItemsanditemswhereitemsis now always a singleton. It's a change for the better, but is also--obviously--incompatible.jayvdb commentedon Jan 6, 2025
Note openapi generator utoipa has switched to OpenAPI v3.1 ; c.f. https://github.com/juhaku/utoipa/#features
https://github.com/paperclip-rs/paperclip & https://github.com/GREsau/okapi are still 3.0.x
metasim commentedon Feb 14, 2025
Yep, I’m here because of utoipa… :/
lostb1t commentedon Mar 26, 2025
Another vote for 3.1 support. I use multiple api’s that are in 3.1
FliegendeWurst commentedon Apr 13, 2025
I've used https://github.com/apiture/openapi-down-convert to convert 3.1.0 -> 3.0.3 with success. It doesn't handle all new constructs, but works for most specs.
gavv commentedon May 25, 2025
salvo.rs also produces 3.1.0 specs, which makes it incompatible with progenitor.
danwt commentedon Jun 17, 2025
Voting
dzmitry-lahoda commentedon Sep 3, 2025
will donate 43USD equivalent in crypto for 3.1 support (i like
constfeature)maticjbalis commentedon Sep 3, 2025
3.1 support would be very helpful for us.
ClemaX commentedon Sep 3, 2025
If someone is willing to accept I will be bidding 50USD in ETH on this issue too.
balisujohn commentedon Sep 7, 2025
@ahl From looking at schemars, it seems to support 2020-12 now(At least, 2020-12 seems to show up in the example json schema in their README). Would the first step in getting this support in progenitor be updating this long-blocked PR on openapiv3 to the new schemars version?
ahl commentedon Sep 8, 2025
@balisujohn schemars supports generation of 2020-12 schemas; it removes support for modeling schemas programmatically (which is fine because that wasn't a focus and it didn't do so with particular accuracy). The more significant blocker is support in
typifyfor JSON Schema 2020-12 (or, more accurately, the superset used by OpenAPI 3.1)--that work is ongoing, but relatively low priority for Oxide.eveeifyeve commentedon Sep 13, 2025
Well as a CEO on behalf of TeaClient (Our Quality of Life Minecraft Client for Modern Versions of Minecraft) we are needing this support too for our registry CLI! I will be getting work on this support to better help opensource, but also better help our registry.
We considered using JSON schemas, but however it wasn't convenient than one schema than Open API. We don't have a crypto wallet to accept the bids/donates, we can get back to you via our discord dming me or @TheTCraft to find a official way of accepting these bids/donations.
eveeifyeve commentedon Sep 13, 2025
Looking at this it looks like this issue needs to be solved first oxidecomputer/typify#886
TheCactusBlue commentedon Oct 15, 2025
I will take it on, if no one else is on this
eveeifyeve commentedon Oct 17, 2025
If you willing to help, you can contribute to https://github.com/TeaClientMC/typify which is working on openapi v3.
This is needed done for openapi v3 support.
TheCactusBlue commentedon Oct 18, 2025
looking at it - my original plan was to create a small patch to rewrite the OpenAPI 3.1 to 3.0, but I think bumping schemars on typify is probably necessary
feat(openapi): add OpenAPI spec and Rust client generation