mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-12-23 11:07:07 +00:00
[Java] allow setting boolean getter (is, has, get) in templates (#7344)
* allow setting java boolean getter (is, has, get) in templates * update msf4j boolean getter * update jaxrs-spec boolean handler * update jaxrs boolean getter * update reasteasy, spring, cxf boolean getter * update inflector boolean getter * update java play boolean getter * update java boolean getter * update spring samples
This commit is contained in:
@@ -87,7 +87,7 @@ public class {{classname}} {{#parent}}extends {{{parent}}}{{/parent}} {{#seriali
|
||||
{{{vendorExtensions.extraAnnotation}}}
|
||||
{{/vendorExtensions.extraAnnotation}}
|
||||
@ApiModelProperty({{#example}}example = "{{{example}}}", {{/example}}{{#required}}required = {{required}}, {{/required}}{{#isReadOnly}}readOnly = {{{isReadOnly}}}, {{/isReadOnly}}value = "{{{description}}}")
|
||||
{{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} public {{{datatypeWithEnum}}} {{getter}}() {
|
||||
{{#useBeanValidation}}{{>beanValidation}}{{/useBeanValidation}} public {{{datatypeWithEnum}}} {{#isBoolean}}is{{/isBoolean}}{{getter}}() {
|
||||
return {{name}};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user