Skip to content

Commit

Permalink
Formatted code
Browse files Browse the repository at this point in the history
  • Loading branch information
uladzimir_paliukhovich committed Jul 20, 2021
1 parent a8e411d commit 7f2390f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/src/code_generators/swagger_requests_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -572,8 +572,9 @@ $allMethodsContent
'enums.${SwaggerModelsGenerator.generateRequestEnumName(path, requestType, parameter.name)}';
parameterType = 'List<$typeName>';
} else {
final neededType =
parameter.type.isNotEmpty ? parameter.type : parameter.schema?.type ?? 'Object';
final neededType = parameter.type.isNotEmpty
? parameter.type
: parameter.schema?.type ?? 'Object';

parameterType =
getParameterTypeName(neededType, parameter.items?.type ?? '');
Expand Down

0 comments on commit 7f2390f

Please sign in to comment.