The analysis_options.yaml additions from #8231 now cause an error on code generated for an endpoint which returns bytes.
After generating the dart-dio client for this spec, dart will now throw an error when building:
A value of type 'dynamic' can't be assigned to a variable of type 'Uint8List'.
Try changing the type of the variable, or casting the right-hand type to 'Uint8List'.
Seems like it could be remedied with an as {{{returnType}}} added to the template.
.
@swipesight (2018/09) @jaumard (2018/09) @josh-burton (2019/12) @amondnet (2019/12) @sbu-WBT (2020/12) @kuhnroyal (2020/12) @agilob (2020/12)
The
analysis_options.yamladditions from #8231 now cause an error on code generated for an endpoint which returns bytes.After generating the dart-dio client for this spec, dart will now throw an error when building:
Seems like it could be remedied with an
as {{{returnType}}}added to the template..
@swipesight (2018/09) @jaumard (2018/09) @josh-burton (2019/12) @amondnet (2019/12) @sbu-WBT (2020/12) @kuhnroyal (2020/12) @agilob (2020/12)