3.2: allow openapi
field to just specify MAJOR.MINOR and omit the PATCH number
#4233
Replies: 6 comments 76 replies
-
We could relax this requirement and allow 3.2 (etc.) but we can't outright forbid the patch version due to compatibility issues. At least not for 3.1.x and 3.0.x. I suppose we coudl say "X.Y.Z" if Y <=1, "X.Y" if Y>=2. |
Beta Was this translation helpful? Give feedback.
-
There's clear consensus that we should allow the There is a lively discussion on whether the patch value should be forbidden or optional. |
Beta Was this translation helpful? Give feedback.
-
@ralfhandl @lornajane last call on this for 3.2- will it be "3.2" or "3.2.0" in the |
Beta Was this translation helpful? Give feedback.
-
I've written quite a lot of words that oppose this plan, with the reasons why, at #4147. The point release is relevant, and it could be made even more relevant and useful still, with no changes at all to the specification or the schema (only release procedures would change). |
Beta Was this translation helpful? Give feedback.
-
Hi, I think it is good for everyone not automating much around openapi and not harnessing it nor using it at runtime (i'm thinking to all openapi intended to be used for dev purposes like swagger-ui and friends) but for any tool and end users using it at runtime (think gateway using it to generate routes for examples) then you can accept to use a random schema even if there is a promise to be backward compatible. Human error happens so there should be a pure immutability in the versioning and 1-1 mapping with the schema IMHO. So while the relax is good it doesn't solve the mapping issue to a fixed schema IMHO. |
Beta Was this translation helpful? Give feedback.
-
@karenetheridge I would like to revisit this:
Do you still maintain this? Even though the I am struggling to understand here, but realize I may still be missing something. Every example seems to point to the opposite conclusion for me: Point/patch releases are irrelevant to schemas. Are there more examples within the current releases/schemas to support tying them together? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Requiring
openapi: MAJOR.MINOR.PATCH
and then stating in the spec that PATCH actually is meaningless is confusing.Better allow (or require?) to write
openapi: MAJOR.MINOR
.Beta Was this translation helpful? Give feedback.
All reactions