|
|
@ -622,7 +622,7 @@ class OpenAPIBuilder implements Builder { |
|
|
|
dataType = 'Uint8List'; |
|
|
|
dataType = 'Uint8List'; |
|
|
|
dataValue = '_response.bodyBytes'; |
|
|
|
dataValue = '_response.bodyBytes'; |
|
|
|
dataNeedsAwait = true; |
|
|
|
dataNeedsAwait = true; |
|
|
|
} else if (mimeType.startsWith('text/')) { |
|
|
|
} else if (mimeType.startsWith('text/') || mimeType == 'application/javascript') { |
|
|
|
dataType = 'String'; |
|
|
|
dataType = 'String'; |
|
|
|
dataValue = '_response.body'; |
|
|
|
dataValue = '_response.body'; |
|
|
|
dataNeedsAwait = true; |
|
|
|
dataNeedsAwait = true; |
|
|
|