From 09e9e4b577266b431618ef025650c812c9088a3e Mon Sep 17 00:00:00 2001 From: Uladzimir_Paliukhovich Date: Fri, 14 Jan 2022 15:44:30 +0300 Subject: [PATCH] Version/2.3.7 (#314) * Fixed some issues * Added fix for Field annotations. Updatec changelog and pubspec * Fixed lot of issues with AllOf support * Updated changelog and pubspec * Added requestbodies generation from requests * Add windows support (#273) * Run CI on windows too * chore: Fix a number of path joins * fix: Revert change to getFileNameWithoutExtension * fix: Normalize paths used for extensions * Fixed errors with requestBodies generation * Added possibility to use operationId for request name * Format code * Updated pubspec and changelog * Fix tests * Fix analyser issues * Updated example readme * Removed converter generator * Fix cases when refs are overriden * Fixed enum generation Changed int64 parsing to double * Released 2.2.8 * Added support int64 * Updated changelog and pubspec * Fix for models int64 * Updated changelog and pubspec * Removed not needed file * Fixed responses array of int * Reverted analysis options * Updated changelog * Updated version * Fixed tests * Fixed analyser issues * Fixed issue #291 * updated changelog and pubcpec * Added parsing of security for requests * Fixed num parsing as Num * Implemented security keys definition * Removed not needed prints * Updated changelog and pubspec * Removed use_inheritance field * Removed outdated tests * Implemented integer enums support * Updated changelog and pubspec * Fixed fromJson for integer enum fields * Updated changelog and pubspec * Formatted code * Updated changelog * Fixed issue 263 * Fixed test * Fixed issue #311 * Updated pubspec and changelog * Fixed list enums generation in requests * Updated pubspec and changelog Co-authored-by: uladzimir_paliukhovich <> Co-authored-by: Elliana May --- CHANGELOG.md | 5 +++++ lib/src/code_generators/swagger_requests_generator.dart | 6 +++--- pubspec.yaml | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index d401c47a..bf350796 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# 2.3.7 + +* Fixed Issue ([#305](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/305)) +* Fixed enum prefix for list of enums in requests when Enums contain names with symbols + # 2.3.6 * Fixed Issue ([#311](https://github.com/epam-cross-platform-lab/swagger-dart-code-generator/issues/311)) diff --git a/lib/src/code_generators/swagger_requests_generator.dart b/lib/src/code_generators/swagger_requests_generator.dart index fbd42684..a0c3fb3c 100644 --- a/lib/src/code_generators/swagger_requests_generator.dart +++ b/lib/src/code_generators/swagger_requests_generator.dart @@ -371,9 +371,9 @@ class SwaggerRequestsGenerator { schemas.addAll(root.definitions); final refs = [ - parameter.schema?.items?.ref.getRef(), - parameter.schema?.ref.getRef(), - parameter.items?.ref.getRef(), + parameter.schema?.items?.ref.getUnformattedRef(), + parameter.schema?.ref.getUnformattedRef(), + parameter.items?.ref.getUnformattedRef(), ]; final schema = schemas[refs.firstWhereOrNull((ref) => ref?.isNotEmpty == true)]; diff --git a/pubspec.yaml b/pubspec.yaml index e8f150bf..8a753563 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: swagger_dart_code_generator -version: 2.3.6 +version: 2.3.7 homepage: https://github.com/epam-cross-platform-lab/swagger-dart-code-generator repository: https://github.com/epam-cross-platform-lab/swagger-dart-code-generator