diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b6f858..d2d6463 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 0.4.3 + +* Ensure client exception returns object + ## 0.4.2 * Allow custom headers to server exception response diff --git a/lib/src/generators/client.dart b/lib/src/generators/client.dart index 32e0a80..cdba75e 100644 --- a/lib/src/generators/client.dart +++ b/lib/src/generators/client.dart @@ -308,7 +308,7 @@ class $clientName { method: method, message: 'Could not encode: \${body.runtimeType}', body: e, - ).toString(); + ); } } @@ -330,7 +330,7 @@ class $clientName { method: method, message: 'Response error', body: e, - ).toString(); + ); } // Check for successful response @@ -345,7 +345,7 @@ class $clientName { message: 'Unsuccessful response', code: response.statusCode, body: response.body, - ).toString(); + ); }\n """); diff --git a/pubspec.yaml b/pubspec.yaml index 7b69b4f..8811e14 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.4.2 +version: 0.4.3 maintainer: Taza Technology LLC repository: https://github.com/tazatechnology/openapi_spec issue_tracker: https://github.com/tazatechnology/openapi_spec/issues @@ -12,7 +12,7 @@ environment: dependencies: collection: ^1.17.2 - freezed_annotation: ^2.2.0 + freezed_annotation: ^2.4.1 json_annotation: ^4.8.1 yaml: ^3.1.2 path: ^1.8.3 @@ -25,6 +25,6 @@ dependencies: dev_dependencies: build_runner: ^2.4.6 lints: ^2.1.1 - freezed: ^2.3.4 - json_serializable: ^6.7.0 + freezed: ^2.4.1 + json_serializable: ^6.7.1 test: ^1.24.4 \ No newline at end of file