diff --git a/swagger_parser/CHANGELOG.md b/swagger_parser/CHANGELOG.md index 681932cd..ae6a390c 100644 --- a/swagger_parser/CHANGELOG.md +++ b/swagger_parser/CHANGELOG.md @@ -1,3 +1,7 @@ +## 1.20.0 +- Add validation params to generated `freezed` classes +- Fixed errors with empty schema properties([#280](https://github.com/Carapacik/swagger_parser/issues/280)) + ## 1.19.2 - Fix replacement rules for OpenAPI v2([#266](https://github.com/Carapacik/swagger_parser/issues/266)) - Add `x-nullable` field for null definition in OpenAPI v2([#268](https://github.com/Carapacik/swagger_parser/issues/268)) diff --git a/swagger_parser/README.md b/swagger_parser/README.md index f7913eb7..4593180b 100644 --- a/swagger_parser/README.md +++ b/swagger_parser/README.md @@ -29,7 +29,7 @@ In your pubspec.yaml, add the following dependencies: ```yaml dependencies: - # dart_mappable: ^4.2.2 # for dart_mappable + # dart_mappable: ^4.3.0 # for dart_mappable # dio: ^5.7.0 # freezed_annotation: ^2.4.4 # for freezed # json_annotation: ^4.9.0 @@ -38,10 +38,10 @@ dependencies: dev_dependencies: # build_runner: ^2.4.12 # carapacik_lints: ^1.9.1 - # dart_mappable_builder: ^4.2.3 # for dart_mappable + # dart_mappable_builder: ^4.3.0 # for dart_mappable # freezed: ^2.5.7 # for freezed - # json_serializable: ^6.8.0 - # retrofit_generator: ^9.1.2 + # json_serializable: ^6.9.0 + # retrofit_generator: ^9.1.5 swagger_parser: ``` diff --git a/swagger_parser/pubspec.yaml b/swagger_parser/pubspec.yaml index 6e2ac8d6..e3aca081 100644 --- a/swagger_parser/pubspec.yaml +++ b/swagger_parser/pubspec.yaml @@ -1,6 +1,6 @@ name: swagger_parser description: Package that generates REST clients and data classes from OpenApi definition file -version: 1.19.2 +version: 1.20.0 repository: https://github.com/Carapacik/swagger_parser/tree/main/swagger_parser topics: - swagger diff --git a/swagger_parser/test/e2e/tests/nullable_types/expected_files/models/class_with_nullable_types.dart b/swagger_parser/test/e2e/tests/nullable_types/expected_files/models/class_with_nullable_types.dart index 5aa7d04e..15b27f69 100644 --- a/swagger_parser/test/e2e/tests/nullable_types/expected_files/models/class_with_nullable_types.dart +++ b/swagger_parser/test/e2e/tests/nullable_types/expected_files/models/class_with_nullable_types.dart @@ -48,8 +48,8 @@ class ClassWithNullableTypes with _$ClassWithNullableTypes { factory ClassWithNullableTypes.fromJson(Map json) => _$ClassWithNullableTypesFromJson(json); - static const double validIntMin = 0.0; - static const double validIntMax = 100.0; + static const int validIntMin = 0; + static const int validIntMax = 100; static const int validStringMinLength = 0; static const int validStringMaxLength = 100; static const String validStringPattern = r"^[a-zA-Z0-9]*$";