diff --git a/src/main/java/org/openapitools/codegen/languages/MicronautCodegen.java b/src/main/java/org/openapitools/codegen/languages/MicronautCodegen.java index 0207e055..66049596 100644 --- a/src/main/java/org/openapitools/codegen/languages/MicronautCodegen.java +++ b/src/main/java/org/openapitools/codegen/languages/MicronautCodegen.java @@ -70,7 +70,6 @@ public class MicronautCodegen extends AbstractJavaCodegen private boolean generateAuthentication = false; private boolean generateExamples = false; private boolean generateConstants = false; - private boolean useBeanValidation = true; private boolean useGenericResponse = true; private boolean useOptional = true; private boolean serdeable = true; @@ -85,6 +84,7 @@ public MicronautCodegen() { supportsAdditionalPropertiesWithComposedSchema = true; useOneOfInterfaces = true; + useBeanValidation = true; cliOptions.clear(); cliOptions.add(CliOption.newBoolean(USE_BEANVALIDATION, "Use bean validation annotations", useBeanValidation));