Skip to content

Commit 3372064

Browse files
committed
Refactoring, changed from String to Boolean when reading the config.
1 parent ea2adef commit 3372064

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

client/deployment/src/main/java/io/quarkiverse/openapi/generator/deployment/codegen/OpenApiGeneratorCodeGenBase.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ protected void generate(OpenApiGeneratorOptions options) {
301301
getValues(smallRyeConfig, openApiFilePath, CodegenConfig.ConfigName.SCHEMA_MAPPINGS, String.class, String.class)
302302
.ifPresent(generator::withSchemaMappings);
303303

304-
getValues(smallRyeConfig, openApiFilePath, CodegenConfig.ConfigName.SERIALIZABLE_MODEL, String.class)
304+
getValues(smallRyeConfig, openApiFilePath, CodegenConfig.ConfigName.SERIALIZABLE_MODEL, Boolean.class)
305305
.ifPresent(generator::withSerialiableModel);
306306

307307
getValues(smallRyeConfig, openApiFilePath, CodegenConfig.ConfigName.NORMALIZER, String.class, String.class)

client/deployment/src/main/java/io/quarkiverse/openapi/generator/deployment/wrapper/OpenApiClientGeneratorWrapper.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ public OpenApiClientGeneratorWrapper withOpenApiNormalizer(final Map<String, Str
191191
return this;
192192
}
193193

194-
public OpenApiClientGeneratorWrapper withSerialiableModel(final String serialiableModel) {
194+
public OpenApiClientGeneratorWrapper withSerialiableModel(final Boolean serialiableModel) {
195195
this.configurator.addAdditionalProperty(CodegenConstants.SERIALIZABLE_MODEL, serialiableModel);
196196
return this;
197197
}

0 commit comments

Comments
 (0)