Skip to content

Commit

Permalink
fixing Responses in Operation #719
Browse files Browse the repository at this point in the history
  • Loading branch information
gracekarina committed Jun 10, 2018
1 parent 291cfd8 commit 8708f1b
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public class Operation {
private List<String> consumes;
private List<String> produces;
private List<Parameter> parameters = new ArrayList<Parameter>();
private Map<String, Response> responses;
private Responses responses;
private List<Map<String, List<String>>> security;
private ExternalDocs externalDocs;
private Boolean deprecated;
Expand Down Expand Up @@ -210,17 +210,17 @@ public void addParameter(Parameter parameter) {
this.parameters.add(parameter);
}

public Map<String, Response> getResponses() {
public Responses getResponses() {
return responses;
}

public void setResponses(Map<String, Response> responses) {
public void setResponses(Responses responses) {
this.responses = responses;
}

public void addResponse(String key, Response response) {
if (this.responses == null) {
this.responses = new LinkedHashMap<String, Response>();
this.responses = new Responses();
}
this.responses.put(key, response);
}
Expand Down

0 comments on commit 8708f1b

Please sign in to comment.