-
Notifications
You must be signed in to change notification settings - Fork 94
Open
Description
Steps to reproduce
- Use the snippet below.
- Generate the api.
The endpoint generated will have Stream as the return type instead of Stream<List> as expected.
Also there is no way to turn off streaming in the docs and this is a breaking change to code in a minor version.
Expected results
Stream<List> (and a way to turn off streaming if you want)
Actual results
Stream
Your OpenApi snippet
"/fieldservice/v1/CallLogs/FieldReports/getfieldreportfieldimage/{FieldReportId}/{FieldId}/{ImageId}": {
"get": {
"tags": [
"FieldService"
],
"operationId": "GetFieldReportFieldImage",
"parameters": [
{
"name": "ImageId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"x-position": 1
},
{
"name": "FieldReportId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"x-position": 2
},
{
"name": "FieldId",
"in": "path",
"required": true,
"schema": {
"type": "string",
"format": "uuid"
},
"x-position": 3
}
],
"responses": {
"200": {
"description": "",
"content": {
"application/octet-stream": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
},
"403": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
},
"404": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
},
"422": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HttpValidationProblemDetails"
}
}
}
},
"500": {
"description": "",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/ProblemDetails"
}
}
}
}
},
"security": [
{
"bearer": []
}
]
}
},
Code sample
N/A
Logs
N/A
Dart version and used packages versions
Dart version
Dart SDK version: 3.10.8 (stable) (Tue Jan 27 00:02:04 2026 -0800) on "macos_arm64"Packages version
environment:
sdk: '>=3.10.0 <4.0.0'
dependencies:
dio: ^5.9.1
dart_mappable: ^4.6.1
retrofit: ^4.9.2
path: ^1.9.1
dev_dependencies:
analyzer:
lints:
build_runner:
build: ^4.0.4
swagger_parser: ^1.42.0
carapacik_lints:
dart_mappable_builder: ^4.6.4
retrofit_generator: 10.2.3
source_gen: ^4.2.0
test:
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels