forked from loafle/openapi-generator-original
Allow to set additional property of any type. Useful for Boolean values. (#8507)
This commit is contained in:
parent
85fd96a9ce
commit
e25fa8ed7d
@ -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.
|
||||
|
||||
|
@ -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.
|
||||
|
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user