Increasing the maxLength property for a String field is considered a breaking change while Decreasing it is considered as Backward compatible. #461
Labels
Breaking/Non-Breaking classification
Issues related to Breaking/Non-Breaking changes classification
While testing out this tool, we've noticed that
increasing the maxLength
property for a String field would returnAPI changes broke backward compatibility
whiledecreasing the maxLength property
for a String field would return aAPI changes are backward compatible
.Shouldn’t it be the other way round? i.e.,
Increasing the maxLength property for a String field should return API changes are backward compatible and
Decreasing the maxLength property for a String field should return API changes broke backward compatibility?
If the current behaviour is the expected behaviour we would like to understand the reasoning behind it.
Here are the snippets of the json files used for the comparison in the following 2 scenarios:
Scenario -1 : Increasing the maxLength property for a String field
oldSpec.json
newSpec.json
Result:
Scenario -2 : Decreasing the maxLength property for a String field
oldSpec.json
newSpec.json
Result:
Thank You
The text was updated successfully, but these errors were encountered: