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.
|additionalProperties
|Map(String,String)
|Map(String,Any)
|None
|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.
*/
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.

View File

@ -189,7 +189,7 @@ open class GenerateTask : DefaultTask() {
*/
@Optional
@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.