Is adding range information to an OpenAPI a breaking change? #1266
Replies: 1 comment
-
Hey @savage-alex -- I'm not sure we consider making the OpenAPI more 'strict' about this counts as breaking, especially if the underlying API behavior has not changed. I think it can be argued that most OpenAPI specs and JSON Schemas are underspecified, that is they could be more 'strict' but are not. Required/optional is a good example. Most API properties appear in combinations, but since specifying a I worry adding rules like this will disincentive developers from making their specs more specific. I think what we should do is add breaking change rules about changing these values, and separately (for teams that care about this), add a rule that requires properties to use these keywords and be very specific about the values they accept. does that make sense? |
Beta Was this translation helpful? Give feedback.
-
Strings, Ints and Numbers have range information describing their either max and min length or values and increments.
Would we consider adding these to be a potential breaking change?
Assumption is normally its adding detail but what if there was no limit previously and now you are enforcing one?
String example (query param)
Number example (query param)
Integer example (query param)
Beta Was this translation helpful? Give feedback.
All reactions