forked from loafle/openapi-generator-original
[Java] Escape descriptions in javadocs (#6040)
The [java8 doclint](http://openjdk.java.net/jeps/172) rejects unescaped HTML chars such as `<`, making some generated clients unbuildable with java8. Seems a few property descriptions were using the `{{{` instead of `{{` preventing those HTML chars from being escaped properly.
This commit is contained in:
parent
b024d86eab
commit
9c56bb63d8
@ -11,7 +11,7 @@ import com.google.gson.stream.JsonWriter;
|
|||||||
{{/gson}}
|
{{/gson}}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{{description}}}{{/description}}
|
* {{^description}}Gets or Sets {{{name}}}{{/description}}{{#description}}{{description}}{{/description}}
|
||||||
*/
|
*/
|
||||||
{{#gson}}
|
{{#gson}}
|
||||||
@JsonAdapter({{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.Adapter.class)
|
@JsonAdapter({{#datatypeWithEnum}}{{{.}}}{{/datatypeWithEnum}}{{^datatypeWithEnum}}{{{classname}}}{{/datatypeWithEnum}}.Adapter.class)
|
||||||
|
@ -80,7 +80,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}} {{/parent}}{{#parcela
|
|||||||
{{/isReadOnly}}
|
{{/isReadOnly}}
|
||||||
/**
|
/**
|
||||||
{{#description}}
|
{{#description}}
|
||||||
* {{{description}}}
|
* {{description}}
|
||||||
{{/description}}
|
{{/description}}
|
||||||
{{^description}}
|
{{^description}}
|
||||||
* Get {{name}}
|
* Get {{name}}
|
||||||
|
@ -38,7 +38,7 @@ public class ModelReturn {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* property description *_/ ' \" =end -- \\r\\n \\n \\r
|
* property description *_/ ' \" =end -- \\r\\n \\n \\r
|
||||||
* @return _return
|
* @return _return
|
||||||
**/
|
**/
|
||||||
@ApiModelProperty(value = "property description *_/ ' \" =end -- \\r\\n \\n \\r")
|
@ApiModelProperty(value = "property description *_/ ' \" =end -- \\r\\n \\n \\r")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user