mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 02:55:19 +00:00
renamed method
This commit is contained in:
parent
f4c8dd9dec
commit
a929fce3a0
@ -177,7 +177,7 @@ class Codegen(config: CodegenConfig) {
|
||||
imports.toSet
|
||||
}
|
||||
|
||||
def stringify(v: DocumentationAllowableValues) = {
|
||||
def allowableValuesToString(v: DocumentationAllowableValues) = {
|
||||
v match {
|
||||
case av: DocumentationAllowableListValues => {
|
||||
av.getValueType + av.getValues.mkString("[", ",", "]")
|
||||
@ -209,7 +209,7 @@ class Codegen(config: CodegenConfig) {
|
||||
params += "allowMultiple" -> param.allowMultiple.toString
|
||||
|
||||
param.allowableValues match {
|
||||
case a: DocumentationAllowableValues => params += "allowableValues" -> stringify(a)
|
||||
case a: DocumentationAllowableValues => params += "allowableValues" -> allowableValuesToString(a)
|
||||
case _ =>
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user