Skip to content

Commit 18c8c42

Browse files
mma5997frantuma
authored andcommitted
removed unnecessary changes done for responses
These changes were impacting the mockit test assert for the expected resolved response usecase.
1 parent 639bafb commit 18c8c42

File tree

2 files changed

+1
-14
lines changed

2 files changed

+1
-14
lines changed

modules/swagger-parser-core/src/main/java/io/swagger/v3/parser/core/models/ParseOptions.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ public class ParseOptions {
1313
private boolean validateInternalRefs = true;
1414
private boolean legacyYamlDeserialization = false;
1515
private boolean resolveRequestBody = false;
16-
private boolean resolveResponses = true;
1716

1817
public boolean isResolve() {
1918
return resolve;
@@ -50,18 +49,6 @@ public boolean isResolveRequestBody() {
5049
public void setResolveRequestBody(boolean resolveRequestBody) {
5150
this.resolveRequestBody = resolveRequestBody;
5251
}
53-
54-
public boolean isResolveResponses() {
55-
return resolveResponses;
56-
}
57-
58-
/**
59-
* If set to true, will help resolving the responses as inline, provided resolve is also set to true.
60-
* Default is true because of the existing behaviour.
61-
*/
62-
public void setResolveResponses(boolean resolveResponses) {
63-
this.resolveResponses = resolveResponses;
64-
}
6552

6653
public boolean isFlatten() { return flatten; }
6754

modules/swagger-parser-v3/src/main/java/io/swagger/v3/parser/processors/OperationProcessor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public void processOperation(Operation operation) {
6262
ApiResponse response = responses.get(responseCode);
6363
if(response != null) {
6464
//This part allows parser to put response inline without the resolveFully option set to true
65-
if (response.get$ref() != null && cache != null && cache.getParseOptions() != null && cache.getParseOptions().isResolveResponses()) {
65+
if (response.get$ref() != null) {
6666

6767
responseProcessor.processResponse(response);
6868

0 commit comments

Comments
 (0)