-
Notifications
You must be signed in to change notification settings - Fork 96
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
OpenAPI v3.1 Support #163
Comments
Support of OpenAPI 3.1 in this library heavily depends on |
@philsturgeon please update openapi.tools status for |
@cebe done, thanks for the update! |
With #185 merged, can we get a tagged release? |
released as 0.19 |
We can probably close this now that #185 has been merged and released. |
Am I correct in understanding that OpenAPI v3.1 is now largely supported, with the exception of the "unevaluatedProperties" keyword? |
@Tim-Haboldt depends very much of what you mean by that. Any tool using a compliant JSON Schema tool will support A tool like this validator really should support it, and there should be a JSON Schema floating around in PHP land that brings support for it in "free". |
Hi @philsturgeon, I saw that openapi.tools state that I look at the cited PR #185 that seems to make think that the whole package where now 3.1 compliant. But by reading the
And by reading some PR like #203, it seems that |
I dug a bit deeper into the project, and found out indeed that despite the use of OpenAPI 3.1 objects to carry the specification, the validation itself doesn't have a full support of 3.1. The validation of For example, an operation with a schema like below, will fail its validation against an integer {
"type": [
"string",
"integer"
],
"maxLength": 2
} By looking at the SchemaValidator::validate, it validates keywords like An idea to fix the repo and make it closer to OpenAPI v3.1, at least for the According to Bowtie, the only PHP package available for JSON Schema draft versions from "Draft 7" to "Draft 2020-12" is opis/json-schema. I'll keep digging and try to find out if it's possible to replace prior validation with |
Hello everyone! As the maintainer of openapi.tools I'm interested in tracking progress towards supporting OpenAPI v3.1.
It's got a bunch of amazing changes in it, solving problems like the the JSON Schema <!=> OpenAPI Schema Object divergence, and fixes some other inconsistencies and duplicate ways of doing things. It's the best version and everyone should be using it, and I see that some folks are starting to use it as they're getting problems #148. We need the tooling to catch up, and its been over a year now. Just in case folks didn't notice, I'm here to give a friendly prod!
Here are a few articles showing off the differences between OpenAPI v3.0 and v3.1.
https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0
https://www.apimatic.io/blog/2021/09/migrating-to-and-from-openapi-3-1/
https://nordicapis.com/whats-new-in-openapi-3-1-0/
If you say you'll be working on it I can update openapi.tools to reflect that.
Let me know if you have any questions, or if you need any help with the upgrade process.
The text was updated successfully, but these errors were encountered: