Skip to content

codegen response object update #9204

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 22, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
public class CodegenResponse extends CodegenObject {
public final List<CodegenProperty> headers = new ArrayList<CodegenProperty>();
public String code, message;
public List<CodegenContent> contents = new ArrayList<>();
public List<Map<String, Object>> examples;
public String dataType, baseType, containerType;
public Object schema;
Expand Down Expand Up @@ -54,6 +55,8 @@ public boolean equals(Object o) {
return false;
if (vendorExtensions != null ? !vendorExtensions.equals(that.vendorExtensions) : that.vendorExtensions != null)
return false;
if (contents != null ? !contents.equals(that.contents) : that.contents != null)
return false;
return jsonSchema != null ? jsonSchema.equals(that.jsonSchema) : that.jsonSchema == null;
}

Expand All @@ -69,6 +72,7 @@ public int hashCode() {
result = 31 * result + (schema != null ? schema.hashCode() : 0);
result = 31 * result + (jsonSchema != null ? jsonSchema.hashCode() : 0);
result = 31 * result + (vendorExtensions != null ? vendorExtensions.hashCode() : 0);
result = 31 * result + (contents != null ? contents.hashCode() : 0);
return result;
}

Expand Down Expand Up @@ -107,4 +111,8 @@ public Object getSchema() {
public String getJsonSchema() {
return jsonSchema;
}

public List<CodegenContent> getContents() {
return contents;
}
}