Skip to content

Commit 7106673

Browse files
committed
Allow to set additional property of any type. Useful for Boolean values.
1 parent 2331432 commit 7106673

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

modules/openapi-generator-gradle-plugin/README.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ apply plugin: 'org.openapi.generator'
215215
|Sets mappings between OpenAPI spec types and generated code types.
216216

217217
|additionalProperties
218-
|Map(String,String)
218+
|Map(String,Any)
219219
|None
220220
|Sets additional properties that can be referenced by the mustache templates.
221221

modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/extensions/OpenApiGeneratorGenerateExtension.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ open class OpenApiGeneratorGenerateExtension(project: Project) {
119119
/**
120120
* Sets additional properties that can be referenced by the mustache templates.
121121
*/
122-
val additionalProperties = project.objects.mapProperty<String, String>()
122+
val additionalProperties = project.objects.mapProperty<String, Any>()
123123

124124
/**
125125
* Sets server variable for server URL template substitution, in the format of name=value,name=value.

modules/openapi-generator-gradle-plugin/src/main/kotlin/org/openapitools/generator/gradle/plugin/tasks/GenerateTask.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ open class GenerateTask : DefaultTask() {
189189
*/
190190
@Optional
191191
@Input
192-
val additionalProperties = project.objects.mapProperty<String, String>()
192+
val additionalProperties = project.objects.mapProperty<String, Any>()
193193

194194
/**
195195
* Sets server variable for server URL template substitution, in the format of name=value,name=value.

0 commit comments

Comments
 (0)