Skip to content

Commit

Permalink
Make query parameter encoding type check more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
walsha2 committed Sep 15, 2023
1 parent 679ab36 commit d98ecb4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## 0.5.9
## 0.5.10

* Ensure query parameters are stringified
* Allow URI construction to handle query parameter encoding
Expand Down
2 changes: 1 addition & 1 deletion lib/src/generators/client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit d98ecb4

Please sign in to comment.