Skip to content

Commit

Permalink
1.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Carapacik committed Dec 4, 2024
1 parent a281a1f commit db61860
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
4 changes: 4 additions & 0 deletions swagger_parser/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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))
Expand Down
8 changes: 4 additions & 4 deletions swagger_parser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
```
Expand Down
2 changes: 1 addition & 1 deletion swagger_parser/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ class ClassWithNullableTypes with _$ClassWithNullableTypes {

factory ClassWithNullableTypes.fromJson(Map<String, Object?> 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]*$";
Expand Down

0 comments on commit db61860

Please sign in to comment.