Allow to set additional property of any type. Useful for Boolean values. (#8507)

This commit is contained in:
Pavel Sveda 2021-03-06 10:35:23 +01:00 committed by GitHub
parent 85fd96a9ce
commit e25fa8ed7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -215,7 +215,7 @@ apply plugin: 'org.openapi.generator'
|Sets mappings between OpenAPI spec types and generated code types. |Sets mappings between OpenAPI spec types and generated code types.
|additionalProperties |additionalProperties
|Map(String,String) |Map(String,Any)
|None |None
|Sets additional properties that can be referenced by the mustache templates. |Sets additional properties that can be referenced by the mustache templates.

View File

@ -119,7 +119,7 @@ open class OpenApiGeneratorGenerateExtension(project: Project) {
/** /**
* Sets additional properties that can be referenced by the mustache templates. * Sets additional properties that can be referenced by the mustache templates.
*/ */
val additionalProperties = project.objects.mapProperty<String, String>() val additionalProperties = project.objects.mapProperty<String, Any>()
/** /**
* Sets server variable for server URL template substitution, in the format of name=value,name=value. * Sets server variable for server URL template substitution, in the format of name=value,name=value.

View File

@ -189,7 +189,7 @@ open class GenerateTask : DefaultTask() {
*/ */
@Optional @Optional
@Input @Input
val additionalProperties = project.objects.mapProperty<String, String>() val additionalProperties = project.objects.mapProperty<String, Any>()
/** /**
* Sets server variable for server URL template substitution, in the format of name=value,name=value. * Sets server variable for server URL template substitution, in the format of name=value,name=value.