File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
src/main/java/org/openapitools/codegen/languages Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 1
1
import org.apache.tools.ant.taskdefs.Patch
2
2
3
- version = " 0.0.15 -SNAPSHOT"
3
+ version = " 0.0.16 -SNAPSHOT"
4
4
5
5
val openApiPatchesSourceDirectory = layout.projectDirectory.dir(" src/patches" )
6
6
val openApiTemplatesDirectory = layout.buildDirectory.dir(" tmp/openapi-templates" )
@@ -16,7 +16,7 @@ dependencies {
16
16
17
17
compileOnly(" org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.21" )
18
18
implementation(" org.openapitools:openapi-generator-gradle-plugin:$openApiVersion " )
19
- implementation(" com.equisoft.openapi.generator.micronaut:micronaut-project-openapi-generator:0.2.1 " )
19
+ implementation(" com.equisoft.openapi.generator.micronaut:micronaut-project-openapi-generator:0.3.0 " )
20
20
21
21
openApiGenerator(" org.openapitools:openapi-generator:$openApiVersion " )
22
22
}
Original file line number Diff line number Diff line change @@ -329,7 +329,9 @@ public String getTypeDeclaration(Schema p) {
329
329
} else if (p instanceof ComposedSchema ) {
330
330
// Support nullable defined using oneOf construct
331
331
ComposedSchema composedSchema = (ComposedSchema )p ;
332
- if (Boolean .TRUE .equals (p .getNullable ()) || ModelUtils .isNullableComposedSchema (composedSchema )) {
332
+ Boolean isNullable = Boolean .TRUE .equals (p .getNullable ())
333
+ || ModelUtils .isNullableComposedSchema (composedSchema );
334
+ if (composedSchema .getOneOf () != null && isNullable ) {
333
335
Schema inner = composedSchema
334
336
.getOneOf ()
335
337
.stream ()
You can’t perform that action at this time.
0 commit comments