fix: use _getDartTypeForParameter to correctly resolve enum types in parameters
This commit is contained in:
parent
ceb91a0ea3
commit
0b20ad6ab5
|
|
@ -14,7 +14,7 @@ mixin RetrofitApiParameters {
|
|||
parameters.add(
|
||||
ApiMethodParameter(
|
||||
name: StringHelper.toDartPropertyName(param.name),
|
||||
type: _getDartType(param.type),
|
||||
type: _getDartTypeForParameter(param),
|
||||
annotation: _g.useRetrofit ? "@Path('${param.name}')" : '',
|
||||
required: param.required,
|
||||
description: param.description,
|
||||
|
|
@ -47,7 +47,7 @@ mixin RetrofitApiParameters {
|
|||
parameters.add(
|
||||
ApiMethodParameter(
|
||||
name: StringHelper.toDartPropertyName(param.name),
|
||||
type: '${_getDartType(param.type)}$nullable',
|
||||
type: '${_getDartTypeForParameter(param)}$nullable',
|
||||
annotation: _g.useRetrofit ? "@Query('${param.name}')" : '',
|
||||
required: param.required,
|
||||
description: param.description,
|
||||
|
|
|
|||
Loading…
Reference in New Issue