Skip to content

Commit a4709d4

Browse files
committed
Fix missing required item in response
1 parent 70a6fb6 commit a4709d4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/main/java/com/qdesrame/openapi/diff/model/ChangedSchema.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public DiffResult isChanged() {
6363
(oldSchema.getMaxLength() != null && oldSchema.getMaxLength() <= newSchema.getMaxLength()));
6464

6565
boolean backwardCompatibleForResponse = (changeEnum == null || changeEnum.getIncreased().isEmpty()) &&
66+
(changeRequired == null || CollectionUtils.isEmpty(changeRequired.getMissing())) &&
6667
missingProperties.isEmpty() &&
6768
(oldSchema == null || newSchema != null) &&
6869
(!changedMaxLength || oldSchema.getMaxLength() == null ||

0 commit comments

Comments
 (0)