add unescapedNotes to CodegenOperation

This commit is contained in:
Yonas Kolb 2016-04-19 11:42:33 +10:00
parent 35ef2324e0
commit 2ccb7a38f9
2 changed files with 2 additions and 1 deletions

View File

@ -15,7 +15,7 @@ public class CodegenOperation {
isListContainer, isMultipart, hasMore = Boolean.TRUE, isListContainer, isMultipart, hasMore = Boolean.TRUE,
isResponseBinary = Boolean.FALSE, hasReference = Boolean.FALSE; isResponseBinary = Boolean.FALSE, hasReference = Boolean.FALSE;
public String path, operationId, returnType, httpMethod, returnBaseType, public String path, operationId, returnType, httpMethod, returnBaseType,
returnContainer, summary, notes, baseName, defaultResponse, discriminator; returnContainer, summary, unescapedNotes, notes, baseName, defaultResponse, discriminator;
public List<Map<String, String>> consumes, produces; public List<Map<String, String>> consumes, produces;
public CodegenParameter bodyParam; public CodegenParameter bodyParam;
public List<CodegenParameter> allParams = new ArrayList<CodegenParameter>(); public List<CodegenParameter> allParams = new ArrayList<CodegenParameter>();

View File

@ -1397,6 +1397,7 @@ public class DefaultCodegen {
op.path = path; op.path = path;
op.operationId = toOperationId(operationId); op.operationId = toOperationId(operationId);
op.summary = escapeText(operation.getSummary()); op.summary = escapeText(operation.getSummary());
op.unescapedNotes = operation.getDescription();
op.notes = escapeText(operation.getDescription()); op.notes = escapeText(operation.getDescription());
op.tags = operation.getTags(); op.tags = operation.getTags();
op.hasConsumes = false; op.hasConsumes = false;