Skip to content

Commit

Permalink
Version/2.10.3 (#588)
Browse files Browse the repository at this point in the history
* Fixed #553 Generation putIfAbsent for names begins with "Map"

* Removed not needed property

* Removed toJson generation

* Returned generation of toJson()

* Implemented toJson only for some models feature

* Fixed some errors

* Added some fixes

* Added createToJson: false for models without toJson

* Fixed #554 generation of putIfAbsent for not needed schemas

* Updated pubspec and changelog

* Reverted change in analysis_options

* Fixed warnings

* Fixed generation of multipart data

* Fixed parameter type generation

* Changed dynamic to Object

* Some fixes

* Add recognition of int64 as int

* Fixed #571

* Fixed #572

* Fixed #570

* Fix #576

* Updated changelog

* Some fixed in configs

* Reverted changes

* implemented support of multipart for border cases

* Added fix for partFile parameters

* Updated pubspec and changelog

* Formatted lib folder

* Fixed warning

* Updated libs
Fixed generation of with base url

* Small fix

* Fixed dependencies

---------

Co-authored-by: Uladzimir Paliukhovich <uladzimir_paliukhovich@epam.com>
  • Loading branch information
Vovanella95 and Uladzimir Paliukhovich authored Apr 20, 2023
1 parent ab78415 commit 4610096
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions example/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@ environment:
sdk: ">=2.17.0 <3.0.0"

dependencies:
chopper: ^5.0.0
chopper: ^6.1.1
json_annotation: ^4.8.0

dev_dependencies:
swagger_dart_code_generator:
path: ../
chopper_generator: ^5.0.0+1
build_runner: ^2.1.7
json_annotation: ^4.4.0
json_serializable: ^6.1.4
chopper_generator: ^6.0.0
build_runner: ^2.3.3
json_serializable: ^6.6.1
lints: ^1.0.1
2 changes: 1 addition & 1 deletion lib/src/code_generators/swagger_requests_generator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1188,7 +1188,7 @@ class SwaggerRequestsGenerator extends SwaggerGeneratorBase {
) {
final baseUrlString = options.withBaseUrl
? "baseUrl: baseUrl ?? Uri.parse('http://$host$basePath')"
: '/*baseUrl: YOUR_BASE_URL*/';
: 'baseUrl: baseUrl';

final converterString = options.withConverter
? 'converter: \$JsonSerializableConverter(),'
Expand Down

0 comments on commit 4610096

Please sign in to comment.