Skip to content

Support OpenAPI 3.1.0 #762

Open
Open

Description

@ysndr

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?

Activity

  1. changed the title [-]support breaking changes of OpenAPI 3.1.0[/-] [+]Support OpenAPI 3.1.0[/+] on Apr 4, 2024
  2. ahl commented on Apr 4, 2024

    @ahl
    Collaborator

    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.

  3. ahl commented on Apr 4, 2024

    @ahl
    Collaborator

    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.

  4. jayvdb commented on Jan 6, 2025

    @jayvdb
    Contributor
  5. metasim commented on Feb 14, 2025

    @metasim

    Yep, I’m here because of utoipa… :/

  6. lostb1t commented on Mar 26, 2025

    @lostb1t

    Another vote for 3.1 support. I use multiple api’s that are in 3.1

  7. FliegendeWurst commented on Apr 13, 2025

    @FliegendeWurst
    Contributor

    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.

  8. gavv commented on May 25, 2025

    @gavv

    salvo.rs also produces 3.1.0 specs, which makes it incompatible with progenitor.

  9. danwt commented on Jun 17, 2025

    @danwt

    Voting

  10. dzmitry-lahoda commented on Sep 3, 2025

    @dzmitry-lahoda

    will donate 43USD equivalent in crypto for 3.1 support (i like const feature)

  11. maticjbalis commented on Sep 3, 2025

    @maticjbalis

    3.1 support would be very helpful for us.

  12. ClemaX commented on Sep 3, 2025

    @ClemaX

    If someone is willing to accept I will be bidding 50USD in ETH on this issue too.

  13. balisujohn commented on Sep 7, 2025

    @balisujohn

    @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?

  14. ahl commented on Sep 8, 2025

    @ahl
    Collaborator

    @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.

  15. eveeifyeve commented on Sep 13, 2025

    @eveeifyeve

    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.

  16. eveeifyeve commented on Sep 13, 2025

    @eveeifyeve

    Looking at this it looks like this issue needs to be solved first oxidecomputer/typify#886

  17. TheCactusBlue commented on Oct 15, 2025

    @TheCactusBlue

    I will take it on, if no one else is on this

  18. eveeifyeve commented on Oct 17, 2025

    @eveeifyeve

    I will take it on, if no one else is on this

    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.

  19. TheCactusBlue commented on Oct 18, 2025

    @TheCactusBlue

    This is needed done for openapi v3 support.

    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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions