diff --git a/CHANGELOG.md b/CHANGELOG.md index 52ca750..26c0ad5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog -## 0.5.9 +## 0.5.10 * Ensure query parameters are stringified * Allow URI construction to handle query parameter encoding diff --git a/lib/src/generators/client.dart b/lib/src/generators/client.dart index 4f8469f..9f8e763 100644 --- a/lib/src/generators/client.dart +++ b/lib/src/generators/client.dart @@ -245,7 +245,7 @@ class $clientName { // Ensure query parameters are strings or iterable of strings queryParams = queryParams.map((key, value) { - if (value is List) { + if (value is Iterable) { return MapEntry(key, value.map((v) => v.toString())); } else { return MapEntry(key, value.toString()); diff --git a/pubspec.yaml b/pubspec.yaml index 25ea8c5..d7f48a9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: openapi_spec description: OpenAPI Specification generator using native Dart code, as well as an all-in-one parser of existing specifications. -version: 0.5.9 +version: 0.5.10 maintainer: Taza Technology LLC repository: https://github.com/tazatechnology/openapi_spec issue_tracker: https://github.com/tazatechnology/openapi_spec/issues