Skip to content

Commit 655a454

Browse files
authored
Merge pull request #3986 from swagger-api/update-operation-1.5
Update Operation
2 parents b4b9282 + e696aea commit 655a454

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

modules/swagger-models/src/main/java/io/swagger/models/Operation.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,10 +218,12 @@ public Map<String, Response> getResponses() {
218218
responses = new Responses();
219219
responses.putAll(responsesObject);
220220
}
221-
return responsesObject;
221+
if (responsesObject != null) {
222+
responses.putAll(responsesObject);
223+
}
224+
return responses;
222225
}
223226

224-
225227
public Responses getResponsesObject() {
226228
if (responsesObject == null && responses != null) {
227229
responsesObject = new Responses();

0 commit comments

Comments
 (0)