Skip to content

Commit

Permalink
Disable useOneOfInterfaces by default
Browse files Browse the repository at this point in the history
  • Loading branch information
altro3 committed Aug 8, 2024
1 parent 018fd5c commit 6d2df33
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ protected AbstractMicronautJavaCodegen() {
generateSwaggerAnnotations = this instanceof JavaMicronautClientCodegen ? OPT_GENERATE_SWAGGER_ANNOTATIONS_FALSE : OPT_GENERATE_SWAGGER_ANNOTATIONS_SWAGGER_2;
generateOperationOnlyForFirstTag = this instanceof JavaMicronautServerCodegen;
openApiNullable = false;
useOneOfInterfaces = true;
useOneOfInterfaces = false;
inlineSchemaOption.put("RESOLVE_INLINE_ENUMS", "true");
// CHECKSTYLE:ON

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ protected AbstractMicronautKotlinCodegen() {
generateOperationOnlyForFirstTag = this instanceof KotlinMicronautServerCodegen;
enumPropertyNaming = CodegenConstants.ENUM_PROPERTY_NAMING_TYPE.UPPERCASE;
inlineSchemaOption.put("RESOLVE_INLINE_ENUMS", "true");
useOneOfInterfaces = true;
useOneOfInterfaces = false;
// CHECKSTYLE:ON

// Set implemented features for user information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ private static class DefaultOptionsBuilder implements MicronautCodeGeneratorOpti

private boolean optional;
private boolean reactive = true;
private boolean useOneOfInterfaces = true;
private boolean useOneOfInterfaces;
private boolean generateHttpResponseAlways;
private boolean generateHttpResponseWhereRequired = true;
private TestFramework testFramework = TestFramework.JUNIT5;
Expand Down

0 comments on commit 6d2df33

Please sign in to comment.