File tree 3 files changed +20
-4
lines changed
3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change
1
+ 4.1.2
2
+ =====
3
+ Support for repeating query parameters
4
+
1
5
4.1.1
2
6
=====
3
7
Support for unencoded Date + DateTime parameters for query parameters.
Original file line number Diff line number Diff line change @@ -11,9 +11,21 @@ class DioClientDelegate implements ApiClientDelegate {
11
11
{bool passErrorsAsApiResponses = false }) async {
12
12
String url = basePath + path;
13
13
14
- // fill in query parameters
15
- Map <String , String > qp = {};
16
- queryParams.forEach ((q) => qp[q.name] = q.value);
14
+ // fill in query parameters, taking care to deal with duplicate
15
+ // field names
16
+ Map <String , dynamic > qp = {};
17
+ queryParams.forEach ((q) {
18
+ if (qp.containsKey (q.name)) {
19
+ final val = qp[q.name];
20
+ if (val is List ) {
21
+ val.add (q.value);
22
+ } else {
23
+ qp[q.name] = [val, q.value];
24
+ }
25
+ } else {
26
+ qp[q.name] = q.value;
27
+ }
28
+ });
17
29
18
30
options.responseType = ResponseType .stream;
19
31
options.receiveDataWhenStatusError = true ;
Original file line number Diff line number Diff line change 1
1
name : openapi_dart_common
2
- version : 4.1.1
2
+ version : 4.1.2
3
3
homepage : https://www.featurehub.io
4
4
repository : https://github.com/dart-ogurets/openapi_dart_common
5
5
description : OpenAPI API common libraries so the generator doesn't generate them
You can’t perform that action at this time.
0 commit comments