Package io.micronaut.openapi.generator
Interface MicronautCodeGeneratorOptionsBuilder
public interface MicronautCodeGeneratorOptionsBuilder
Builder for generic options that the Micronaut code generator supports.
-
Method Summary
Modifier and TypeMethodDescriptionwithApiPackage
(String apiPackage) Sets the package of the generated API classes.withArtifactId
(String artifactId) Sets the artifact id of the project.withBeanValidation
(boolean beanValidation) If set to true, the generated code will use bean validation.withInvokerPackage
(String invokerPackage) Sets the package of the generated invoker classes.withModelPackage
(String modelPackage) Sets the package of the generated model classes.withOptional
(boolean optional) If set to true, the generated code will make use ofOptional
.withReactive
(boolean reactive) If set to true, the generator will use reactive types.withTestFramework
(MicronautCodeGeneratorEntryPoint.TestFramework testFramework) Configures the test framework to use for generated tests.withWrapInHttpResponse
(boolean wrapInHttpResponse) If true, the generated client will use responses wrapped in HttpResponse.
-
Method Details
-
withApiPackage
Sets the package of the generated API classes.- Parameters:
apiPackage
- the package name- Returns:
- this builder
-
withInvokerPackage
Sets the package of the generated invoker classes.- Parameters:
invokerPackage
- the package name- Returns:
- this builder
-
withModelPackage
Sets the package of the generated model classes.- Parameters:
modelPackage
- the package name- Returns:
- this builder
-
withArtifactId
Sets the artifact id of the project.- Parameters:
artifactId
- the artifact id- Returns:
- this builder
-
withReactive
If set to true, the generator will use reactive types.- Parameters:
reactive
- the reactive flag- Returns:
- this builder
-
withWrapInHttpResponse
If true, the generated client will use responses wrapped in HttpResponse.- Parameters:
wrapInHttpResponse
- the wrapping flag- Returns:
- this builder
-
withBeanValidation
If set to true, the generated code will use bean validation.- Parameters:
beanValidation
- the bean validation flag- Returns:
- this builder
-
withOptional
If set to true, the generated code will make use ofOptional
.- Parameters:
optional
- the optional flag- Returns:
- this builder
-
withTestFramework
MicronautCodeGeneratorOptionsBuilder withTestFramework(MicronautCodeGeneratorEntryPoint.TestFramework testFramework) Configures the test framework to use for generated tests.- Parameters:
testFramework
- the test framework- Returns:
- this builder
-
withSerializationLibrary
-