Micronaut.modelRecord.mustache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of micronaut-openapi-codegen Show documentation
Show all versions of micronaut-openapi-codegen Show documentation
This is an openapi generator for Micronaut.
The newest version!
{{#serdeable}}@io.micronaut.serde.annotation.Serdeable
{{/serdeable}}public record {{classname}}({{#allVars}}
{{#description}} /** {{description}} */
{{/description}}{{^required}} @io.micronaut.core.annotation.Nullable
{{/required}}{{#useBeanValidation}}{{>modelPropertyValidation}}{{/useBeanValidation}}{{>modelPropertyJackson}}
{{>modelPropertyType}} {{name}}{{^-last}},{{/-last}}{{/allVars}}){{#interfaceModels}}{{#-first}} implements{{/-first}} {{classname}}{{^-last}}, {{/-last}}{{/interfaceModels}} {{curly}}{{#generateConstants}}
{{#vars}}{{#-first}}
{{/-first}} public static final java.lang.String JSON_PROPERTY_{{nameInSnakeCase}} = "{{baseName}}";
{{/vars}}{{/generateConstants}}{{#vendorExtensions.discriminatorPropertyValue}}{{^generateConstants}}
{{/generateConstants}}
@Override
public {{vendorExtensions.discriminatorPropertyType}} {{vendorExtensions.discriminatorPropertyName}}() {
return {{{vendorExtensions.discriminatorPropertyValue}}};
}
{{/vendorExtensions.discriminatorPropertyValue}}{{#allVars}}{{#isEnum}}
{{>modelEnum}}{{#-last}}
{{/-last}}{{/isEnum}}{{/allVars}}}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy