|
|
@ -604,7 +604,7 @@ class OpenAPIBuilder implements Builder { |
|
|
|
spec, |
|
|
|
spec, |
|
|
|
state, |
|
|
|
state, |
|
|
|
_toDartName( |
|
|
|
_toDartName( |
|
|
|
parameter.name, |
|
|
|
'$operationId-${parameter.name}', |
|
|
|
uppercaseFirstCharacter: true, |
|
|
|
uppercaseFirstCharacter: true, |
|
|
|
), |
|
|
|
), |
|
|
|
parameter.schema!, |
|
|
|
parameter.schema!, |
|
|
@ -1078,6 +1078,9 @@ String _valueToEscapedValue(final TypeResult result, final dynamic value) { |
|
|
|
if (result is TypeResultList) { |
|
|
|
if (result is TypeResultList) { |
|
|
|
return 'const $value'; |
|
|
|
return 'const $value'; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
if (result is TypeResultEnum) { |
|
|
|
|
|
|
|
return '${result.name}.${_toDartName(value.toString())}'; |
|
|
|
|
|
|
|
} |
|
|
|
return value.toString(); |
|
|
|
return value.toString(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|