-
Notifications
You must be signed in to change notification settings - Fork 533
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support OAS 3.1 ? #1535
Comments
@chrisdudley not yet. It's in the plans, but there's no ETA yet. |
Can adding type null be one of the first features? |
Will the same parser jar support both OAS3.0.x and OAS3.1.x documents? |
Hi @webron, Thanks! |
This reverts commit 247d726.
Probably it's time to repeat question two months later:
Thanks! |
@frantuma Is there any way to help? I'm happy to throw you a €50 bounty if that helps. |
Hey @Mark-H, many thanks for your kind offer! We have 3.1 in our short term roadmap, we'll add an explanation in a few days about what we're doing and how we are adding OAS 3.1 support to swagger-core and swagger-parser, sharing some design decisions, motivations, tasks involved, needed work and ongoing implementation. I'll link that in this and other tickets related to OAS 3.1 support, any thought/comment/discussion/coding and generally any help are highly welcome. Stay tuned and thanks |
Any chance that this bug could be fixed as part of the 3.1 roadmap? |
As mentioned above we have 3.1 in our short term roadmap, that we are sharing here, along with some design decisions taken to reach a good balance in terms of feature set, effort and compatibility. OAS 3.1 support in Java Swagger Core and Swagger Parser - RoadmapOpenAPI 3.1 has been released in February 2021 and interest/requests to add support to Core and/or Parser has been growing in the past months. We are sharing here our roadmap to add such support, along with some design decisions taken to reach a good balance in terms of feature set, effort and compatibility. We would ask the community to provide any feedback about the chosen direction, and as always any contribution is more than welcome. Swagger Core (branch oas3.1)
Swagger Parser (branch oas3.1)
Can I help?Sure you can, as always any contribution is more than welcome, be it feedback, PRs, reviews, etc. Please do reach out! Tasks summary and ongoing effortsWe are actively proceeding with implementation in feature branches for both Swagger Core and Swagger Parser, with efforts to get to a first 3.1 supporting release. Having started in September, we'll post updates as progress is made. Affected projectsSwagger Core and Swagger Parser will be the first 2 projects implementing OAS 3.1 support (and JSON Schema 2020/12), as they provide the core features; in the medium term we'll also provide 3.1 support in Swagger Inflector, Swagger Petstore and Swagger Codegen. in Swagger Core, the first focus is going to be in implementing support in Initially therefore OAS 3.1 / JSON Schema 2020/12 will be "supported" as outcome of In Swagger Parser, deserialization and validation will be updated to be able to support 3.1 constructs, while "resolving" (de-referencing + bundling) will be updated to handle different Base URI identification for JSON Schema along with introducing merge mechanism for Versioning and artifacts.We have decided to implement OAS 3.1 support in the same code line currently providing OAS 3.0 support, i.e.
The alternative would have been implementing a separated code base with own set of artifacts, e.g. A separate codebase comes with a high price in terms of maintenance effort, implementing both versions support within the same code line solves this issue. Even if semantic versioning has been dropped, 3.1 is still a minor version update, where the majority of 3.0 constructs are compatible with 3.1. Users will be facilitated by being able to keep using the same code to process both versions. In the medium/long run, our plans include a major rewrite of both Swagger Core and Parser to improve versions handling and other areas. Related community tickets
|
parser が 3.1.x に対応してないっぽい OpenAPITools/openapi-diff#200 swagger-api/swagger-parser#1535
any updates on OAS3.1? |
@gunsluo on its way, should be very short term for parser support including dereferencing. Swagger Core support for representation/serialization/deserialization has been implemented, along with OAS 3.0 conversion into 3.1 as a (temporary) way to get a OAS 3.1 spec out of code first resolving by Swagger Core. No ETA but quite short term also (some 3-4 weeks) we are going for OAS 3.1 full support in Swagger Core code first resolving in terms of annotations and related logic |
#1730 implements OAS 3.1 Support in terms of parsing/validation and de-referencing / resolving. Updated documentation about usage, features, limitations and remaining tasks will follow shortly (Swagger Core and Swagger Parser) |
@frantuma should this be closed? |
It looks like as of v2.1.0 this can be closed https://github.com/swagger-api/swagger-parser/releases/tag/v2.1.0 |
i agree with @samgqroberts thx |
Does swagger-parser support and validate OAS 3.1 files?
http://spec.openapis.org/oas/v3.1.0
The text was updated successfully, but these errors were encountered: