Skip to content
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

added fields, for test generated files, on codegen objects. #8725

Merged
merged 1 commit into from
Sep 20, 2018
Merged
Show file tree
Hide file tree
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 @@ -17,8 +17,7 @@
public class CodegenOperation extends CodegenObject {
public final List<CodegenProperty> responseHeaders = new ArrayList<CodegenProperty>();
public boolean returnTypeIsPrimitive, returnSimpleType, subresourceOperation;
public String path, operationId, returnType, httpMethod, returnBaseType,
returnContainer, summary, unescapedNotes, notes, baseName, defaultResponse;
public String path, operationId, returnType, httpMethod, returnBaseType, returnContainer, summary, unescapedNotes, notes, baseName, defaultResponse, testPath;
public Discriminator discriminator;
public List<Map<String, String>> consumes, produces, prioritizedContentTypes;
public CodegenParameter bodyParam;
Expand Down Expand Up @@ -353,6 +352,10 @@ public String getDefaultResponse() {
return defaultResponse;
}

public String getTestPath() {
return testPath;
}

public Discriminator getDiscriminator() {
return discriminator;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ public class CodegenParameter extends CodegenObject {
collectionFormat, description, unescapedDescription, baseType, defaultValue, enumName;

public String example; // example value (x-example)
public String testExample;
public String jsonSchema;
public List<String> _enum;
public Map<String, Object> allowableValues;
Expand Down Expand Up @@ -120,6 +121,7 @@ public CodegenParameter copy() {
output.jsonSchema = this.jsonSchema;
output.defaultValue = this.defaultValue;
output.example = this.example;
output.testExample = this.testExample;
if (this._enum != null) {
output._enum = new ArrayList<String>(this._enum);
}
Expand Down Expand Up @@ -297,6 +299,10 @@ public String getExample() {
return example;
}

public String getTestExample() {
return testExample;
}

public String getJsonSchema() {
return jsonSchema;
}
Expand Down