Skip to content

Commit

Permalink
Version/2.4.0 prerelease.1 (#338)
Browse files Browse the repository at this point in the history
* Fixed allof without parameters generation

* Updatecd pubspec and changelog

* Fixed analyser issues

* Fixed issue 331 with List<List<User>>

* Updatec pubspec and changelog.
Removed not needed code

* Updated gitignore

* Added ability to generate files from urls

* Improved code generator

* Updated changelog and pubspec

* Added main.dart

* Removed generation of indexes file

* Updated changelog and pubspec

* Fixed parameter names generation

* Revert "Removed generation of indexes file"

This reverts commit 4ad82db.

* Fixed generation of client index file

* Fixed enum names generation

* Updated pubspec and changelog

* Added possibility to cache files

* Issue #340 added generation of toString overrides

* Updated dependencies and added lints

* Updated lints

* Fixed enum names generation from x-enumNames and x-enum-varnames

* Fixed tests

* Updated changelog and pubspec

* Fixed tests

Co-authored-by: uladzimir_paliukhovich <>
  • Loading branch information
Vovanella95 authored Feb 11, 2022
1 parent eb4c345 commit e195767
Show file tree
Hide file tree
Showing 32 changed files with 1,905 additions and 2,096 deletions.
5 changes: 0 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,7 @@
build/

# Code generation related
*.g.dart
*.chopper.dart
*.lock
*.swagger.dart
!example_swagger.swagger.dart
!example_swagger.enums.swagger.dart
*.pubspec.lock
*.swagger
*.test_coverage.dart
Expand Down
24 changes: 19 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,41 @@
# 2.4.0-prerelease.4

* Updated lints ([#339](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/339))
* Added generation enum names with `x-enumNames` or `x-enum-varnames` ([#307](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/307))

# 2.4.0-prerelease.3

* Added toString generation for models ([#340](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/340))
# 2.4.0-prerelease.2

* Added ability to use swagger files from internet ([#316](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/316))
* `input_folder` option is not requited now
* Fixed naming issues and enum names generation

# 2.3.13

* Fixed generation of Response<List<List<SomeClass>>> ([#331](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/331))
* Fixed generation of `Response<List<List<SomeClass>>>` ([#331](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/331))

# 2.3.12

* Upgraded allOf generation without parameters ([#329](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/329))

# 2.3.11

* Fixed cases when classes has name "Type" ([#328](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/328))
* Fixed cases when classes has name `Type` ([#328](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/328))

# 2.3.10

* Fixed cases when we have Stream<SomeClass> as request parameter
* Fixed cases when we have List<List<....<SomeClass>>> in model properties
* Fixed cases when we have `Stream<SomeClass>` as request parameter
* Fixed cases when we have `List<List<....<SomeClass>>>` in model properties

# 2.3.9

* Fixed cases with array string definitions([#313](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/313))

# 2.3.8

* Added generation of 'Map<String, dynamic>' for fields with additional properties([#296](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/296))
* Added generation of `Map<String, dynamic>` for fields with additional properties([#296](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/296))

# 2.3.7

Expand Down
2 changes: 1 addition & 1 deletion analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# https://www.dartlang.org/guides/language/analysis-options

include: package:pedantic/analysis_options.yaml
include: package:lints/recommended.yaml

analyzer:
strong-mode:
Expand Down
15 changes: 15 additions & 0 deletions example/analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# https://www.dartlang.org/guides/language/analysis-options

include: package:lints/recommended.yaml

analyzer:
strong-mode:
implicit-casts: false
exclude:
- example/**/*.dart
- lib/**/*.g2.dart
linter:
rules:
- type_annotate_public_apis
- void_checks
- unnecessary_new
2 changes: 2 additions & 0 deletions example/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ targets:
input_folder: "lib/"
output_folder: "lib/swagger_generated_code/"
use_inheritance: false
input_urls:
- "https://raw.githubusercontent.com/epam-cross-platform-lab/swagger-dart-code-generator/master/example/lib/example_swagger.json"
with_base_url: true
with_converter: true
use_path_for_request_names: true
Expand Down
Loading

0 comments on commit e195767

Please sign in to comment.