forked from loafle/openapi-generator-original
Move the JsonbProperty annotation from the getter to the field declaration (#10035)
Co-authored-by: Mike Anderson <mike.d.anderson@oracle.com>
This commit is contained in:
parent
6686048b0e
commit
831034bb24
@ -46,6 +46,9 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}}{{#serializ
|
|||||||
* {{{description}}}
|
* {{{description}}}
|
||||||
**/
|
**/
|
||||||
{{/description}}
|
{{/description}}
|
||||||
|
{{^withXml}}
|
||||||
|
@JsonbProperty("{{baseName}}")
|
||||||
|
{{/withXml}}
|
||||||
{{#isContainer}}
|
{{#isContainer}}
|
||||||
private {{{datatypeWithEnum}}} {{name}}{{#required}} = {{{defaultValue}}}{{/required}}{{^required}} = null{{/required}};
|
private {{{datatypeWithEnum}}} {{name}}{{#required}} = {{{defaultValue}}}{{/required}}{{^required}} = null{{/required}};
|
||||||
{{/isContainer}}
|
{{/isContainer}}
|
||||||
@ -76,9 +79,6 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}}{{#serializ
|
|||||||
{{#deprecated}}
|
{{#deprecated}}
|
||||||
@Deprecated
|
@Deprecated
|
||||||
{{/deprecated}}
|
{{/deprecated}}
|
||||||
{{^withXml}}
|
|
||||||
@JsonbProperty("{{baseName}}")
|
|
||||||
{{/withXml}}
|
|
||||||
{{#vendorExtensions.x-extra-annotation}}
|
{{#vendorExtensions.x-extra-annotation}}
|
||||||
{{{vendorExtensions.x-extra-annotation}}}
|
{{{vendorExtensions.x-extra-annotation}}}
|
||||||
{{/vendorExtensions.x-extra-annotation}}
|
{{/vendorExtensions.x-extra-annotation}}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user