Browse Source

dynamite: generate builderFactories for all returntypes

pull/324/head
Nikolas Rimikis 2 years ago
parent
commit
a6d8f98cd3
No known key found for this signature in database
GPG Key ID: 85ED1DE9786A4FF2
  1. 2
      packages/dynamite/dynamite/lib/src/openapi_builder.dart

2
packages/dynamite/dynamite/lib/src/openapi_builder.dart

@ -930,6 +930,8 @@ class OpenAPIBuilder implements Builder {
), ),
mediaType.schema!, mediaType.schema!,
); );
state.resolvedTypeCombinations.add(result);
if (mimeType == '*/*' || mimeType.startsWith('image/')) { if (mimeType == '*/*' || mimeType.startsWith('image/')) {
dataType = 'Uint8List'; dataType = 'Uint8List';
dataValue = 'response.body'; dataValue = 'response.body';

Loading…
Cancel
Save