|
17 | 17 | import org.openapitools.openapidiff.core.model.schema.ChangedMaxLength; |
18 | 18 | import org.openapitools.openapidiff.core.model.schema.ChangedMaxProperties; |
19 | 19 | import org.openapitools.openapidiff.core.model.schema.ChangedMinItems; |
| 20 | +import org.openapitools.openapidiff.core.model.schema.ChangedMinLength; |
20 | 21 | import org.openapitools.openapidiff.core.model.schema.ChangedMinProperties; |
21 | 22 | import org.openapitools.openapidiff.core.model.schema.ChangedMultipleOf; |
22 | 23 | import org.openapitools.openapidiff.core.model.schema.ChangedNullable; |
@@ -49,6 +50,7 @@ public class ChangedSchema implements ComposedChanged { |
49 | 50 | protected ChangedWriteOnly writeOnly; |
50 | 51 | protected boolean changedType; |
51 | 52 | protected ChangedMaxLength maxLength; |
| 53 | + protected ChangedMinLength minLength; |
52 | 54 | protected ChangedNumericRange numericRange; |
53 | 55 | protected ChangedMultipleOf multipleOf; |
54 | 56 | protected ChangedMaxItems maxItems; |
@@ -139,6 +141,7 @@ public List<Changed> getChangedElements() { |
139 | 141 | enumeration, |
140 | 142 | required, |
141 | 143 | maxLength, |
| 144 | + minLength, |
142 | 145 | numericRange, |
143 | 146 | multipleOf, |
144 | 147 | maxItems, |
@@ -303,6 +306,10 @@ public ChangedMaxLength getMaxLength() { |
303 | 306 | return this.maxLength; |
304 | 307 | } |
305 | 308 |
|
| 309 | + public ChangedMinLength getMinLength() { |
| 310 | + return this.minLength; |
| 311 | + } |
| 312 | + |
306 | 313 | public ChangedNumericRange getNumericRange() { |
307 | 314 | return this.numericRange; |
308 | 315 | } |
@@ -475,6 +482,12 @@ public ChangedSchema setMaxLength(final ChangedMaxLength maxLength) { |
475 | 482 | return this; |
476 | 483 | } |
477 | 484 |
|
| 485 | + public ChangedSchema setMinLength(final ChangedMinLength minLength) { |
| 486 | + clearChangedCache(); |
| 487 | + this.minLength = minLength; |
| 488 | + return this; |
| 489 | + } |
| 490 | + |
478 | 491 | public ChangedSchema setNumericRange(final ChangedNumericRange numericRange) { |
479 | 492 | clearChangedCache(); |
480 | 493 | this.numericRange = numericRange; |
@@ -585,6 +598,7 @@ public boolean equals(Object o) { |
585 | 598 | && Objects.equals(readOnly, that.readOnly) |
586 | 599 | && Objects.equals(writeOnly, that.writeOnly) |
587 | 600 | && Objects.equals(maxLength, that.maxLength) |
| 601 | + && Objects.equals(minLength, that.minLength) |
588 | 602 | && Objects.equals(numericRange, that.numericRange) |
589 | 603 | && Objects.equals(multipleOf, that.multipleOf) |
590 | 604 | && Objects.equals(maxItems, that.maxItems) |
@@ -623,6 +637,7 @@ public int hashCode() { |
623 | 637 | writeOnly, |
624 | 638 | changedType, |
625 | 639 | maxLength, |
| 640 | + minLength, |
626 | 641 | numericRange, |
627 | 642 | multipleOf, |
628 | 643 | maxItems, |
@@ -681,6 +696,8 @@ public java.lang.String toString() { |
681 | 696 | + this.isChangedType() |
682 | 697 | + ", maxLength=" |
683 | 698 | + this.getMaxLength() |
| 699 | + + ", minLength=" |
| 700 | + + this.getMinLength() |
684 | 701 | + ", numericRange=" |
685 | 702 | + this.getNumericRange() |
686 | 703 | + ", multipleOf=" |
|
0 commit comments