php-openapi
php-openapi copied to clipboard
Support OpenAPI 3.1
OpenAPI 3.1 has just been released... Can we hope for support in this library?
Changes in the spec seems really small, but there are some small BCs that could complicate the stuff further: https://www.openapis.org/blog/2021/02/16/migrating-from-openapi-3-0-to-3-1-0
Main differences:
- no more
nullable
-type: string
-nullable: true
+type:
+ - "string"
+ - "null"
exclusiveMinimumandexclusiveMaximumare used directly
-minimum: 7
-exclusiveMinimum: true
+exclusiveMinimum: 7
examples, no moreexample
-example: fedora
+examples:
+ - fedora
- Describing File Upload Payloads
- declaring JSON Schema dialect explicitly
Just opened #117 that adds the low level schema validation, already have code lined up to take care of the no more nullable as well, plus #114 for webhooks as well. But both depends on #117 to kick this all off
Any news here? How can we help to push this forward?