Skip to content
This repository has been archived by the owner on Sep 21, 2023. It is now read-only.

Commit

Permalink
Version/2.4.0 prerelease (epam-cross-platform-lab#345)
Browse files Browse the repository at this point in the history
* Downgraded path dependency

* Updated pubspec and changelog

* Fixed enums with 'class' name generation epam-cross-platform-lab#283

* Fixed names duplication

* Fixed case when class named 'Query' epam-cross-platform-lab#343

* Updated pubspec and changelog

Co-authored-by: uladzimir_paliukhovich <>
  • Loading branch information
Vovanella95 authored Feb 16, 2022
1 parent 09e2ff9 commit d272376
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# 2.4.1

* Fixed cases when class has name `Query` ([#343](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/343))
* Fixed cases when we have class and field named `class` and it's enum ([#283](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/283))
* Fixed names duplication when generator generates list of outputs

# 2.4.0

* Downgraded `path` dependency
Expand Down
8 changes: 7 additions & 1 deletion lib/src/code_generators/constants.dart
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@ const List<String> successResponseCodes = [
'201',
];

const List<String> kKeyClasses = ['Response', 'Request', 'Type'];
const List<String> kKeyClasses = [
'Response',
'Request',
'Type',
'Query',
];

const kBasicTypes = [
'string',
'int',
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: swagger_dart_code_generator

version: 2.4.0
version: 2.4.1

homepage: https://github.com/epam-cross-platform-lab/swagger-dart-code-generator
repository: https://github.com/epam-cross-platform-lab/swagger-dart-code-generator
Expand Down

0 comments on commit d272376

Please sign in to comment.