-
Notifications
You must be signed in to change notification settings - Fork 124
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect generated param name #168
Comments
Hi @mzdm ! Looks like it's easy fix. We will fix it ASAP. (possible today) |
Vovanella95
pushed a commit
that referenced
this issue
May 24, 2021
Please check 2.0.0-nullsafety.8 |
@mzdm Also thanks for examples of swagger files. It's really helpful. |
Thanks for the fast fix! 💙 I'll try later tomorrow. |
Can confirm it was fixed with |
fryette
added a commit
that referenced
this issue
Jun 1, 2021
* Made enums not nullable * Updated pubspec and changelog * Removed not needed code * Added ..removeWhere for maps from json * Changed default enum value to empty string * Fixed some things * Add nullable parameters * Fixed enums parsing * Merge remote-tracking branch 'origin/version/1.7.0' # Conflicts: # CHANGELOG.md # analysis_options.yaml # example/build.yaml # lib/src/code_generators/swagger_models_generator.dart # lib/src/code_generators/swagger_requests_generator.dart # pubspec.yaml * updated chopper version * Make all parameters nullable * Fixed list of enums parsing * Made list elements not nullable * updated pubspec and changelog * Fixed List<Strings> * updated changeloc and pubspec * Removed required attribute from constructors * updated pubspec and changelog * Merged other branch * Fixed issues * Fix * reverted version back * Made default header case insative * Uncommended build file * Uncommended bulld.yaml * Fixe #168 and Fixed #167 * Added models postfix * Revert "Added models postfix" This reverts commit 7f3026a. * Removed ..removeWehere * Revert "Revert "Added models postfix"" This reverts commit b27473b. * Implemented models postfix * fixed tests * added generated files to ignore * Updated dependencies and version * Fixed version * Added some tests Co-authored-by: uladzimir_paliukhovich <> Co-authored-by: Yauhen <ysampir@gmail.com>
Vovanella95
added a commit
that referenced
this issue
Jun 1, 2021
* Made enums not nullable * Updated pubspec and changelog * Removed not needed code * Added ..removeWhere for maps from json * Changed default enum value to empty string * Fixed some things * Add nullable parameters * Fixed enums parsing * Merge remote-tracking branch 'origin/version/1.7.0' # Conflicts: # CHANGELOG.md # analysis_options.yaml # example/build.yaml # lib/src/code_generators/swagger_models_generator.dart # lib/src/code_generators/swagger_requests_generator.dart # pubspec.yaml * updated chopper version * Make all parameters nullable * Fixed list of enums parsing * Made list elements not nullable * updated pubspec and changelog * Fixed List<Strings> * updated changeloc and pubspec * Removed required attribute from constructors * updated pubspec and changelog * Merged other branch * Fixed issues * Fix * reverted version back * Made default header case insative * Uncommended build file * Uncommended bulld.yaml * Fixe #168 and Fixed #167 * Added models postfix * Revert "Added models postfix" This reverts commit 7f3026a. * Removed ..removeWehere * Revert "Revert "Added models postfix"" This reverts commit b27473b. * Implemented models postfix * fixed tests * added generated files to ignore * Updated dependencies and version * Fixed version * Added some tests * Removed meta * Updated pubspec and changelog * moved dart style to dev_dependencies * Returned dart_style Co-authored-by: uladzimir_paliukhovich <> Co-authored-by: Yauhen <ysampir@gmail.com>
fryette
added a commit
that referenced
this issue
Jun 2, 2021
* Made enums not nullable * Updated pubspec and changelog * Removed not needed code * Added ..removeWhere for maps from json * Changed default enum value to empty string * Fixed some things * Add nullable parameters * Fixed enums parsing * Merge remote-tracking branch 'origin/version/1.7.0' # Conflicts: # CHANGELOG.md # analysis_options.yaml # example/build.yaml # lib/src/code_generators/swagger_models_generator.dart # lib/src/code_generators/swagger_requests_generator.dart # pubspec.yaml * updated chopper version * Make all parameters nullable * Fixed list of enums parsing * Made list elements not nullable * updated pubspec and changelog * Fixed List<Strings> * updated changeloc and pubspec * Removed required attribute from constructors * updated pubspec and changelog * Merged other branch * Fixed issues * Fix * reverted version back * Made default header case insative * Uncommended build file * Uncommended bulld.yaml * Fixe #168 and Fixed #167 * Added models postfix * Revert "Added models postfix" This reverts commit 7f3026a. * Removed ..removeWehere * Revert "Revert "Added models postfix"" This reverts commit b27473b. * Implemented models postfix * fixed tests * added generated files to ignore * Updated dependencies and version * Fixed version * Added some tests * Removed meta * Updated pubspec and changelog * moved dart style to dev_dependencies * Returned dart_style * Updated chopper version in example Co-authored-by: uladzimir_paliukhovich <> Co-authored-by: Yauhen <ysampir@gmail.com>
Vovanella95
added a commit
that referenced
this issue
Aug 19, 2021
* Made enums not nullable * Updated pubspec and changelog * Removed not needed code * Added ..removeWhere for maps from json * Changed default enum value to empty string * Fixed some things * Add nullable parameters * Fixed enums parsing * Merge remote-tracking branch 'origin/version/1.7.0' # Conflicts: # CHANGELOG.md # analysis_options.yaml # example/build.yaml # lib/src/code_generators/swagger_models_generator.dart # lib/src/code_generators/swagger_requests_generator.dart # pubspec.yaml * updated chopper version * Make all parameters nullable * Fixed list of enums parsing * Made list elements not nullable * updated pubspec and changelog * Fixed List<Strings> * updated changeloc and pubspec * Removed required attribute from constructors * updated pubspec and changelog * Merged other branch * Fixed issues * Fix * reverted version back * Made default header case insative * Uncommended build file * Uncommended bulld.yaml * Fixe #168 and Fixed #167 * Added models postfix * Revert "Added models postfix" This reverts commit 7f3026a. * Removed ..removeWehere * Revert "Revert "Added models postfix"" This reverts commit b27473b. * Implemented models postfix * fixed tests * added generated files to ignore * Updated dependencies and version * Refactored requests generator * Fixed some dependencies * Revert "Fixed some dependencies" This reverts commit 180b10d. * Pushed generated files * Fixed imports * Fixed version * Added some tests * Removed meta * Updated pubspec and changelog * moved dart style to dev_dependencies * Returned dart_style * Updated chopper version in example * Resolved conflicts * Fixed requests generator * Fixed some issues in requests generator * Fixed modelPostfix for requests models * Refactored some fixes * Fixed enum parameters in requests generator * Fixed some issues * Fixed some bugs in generators * Fixed some things * Some fixes * fixed some things * Renamed generated file * Fixed some things * Fixed some issues * Added support of request bodies * Fixed request bodies calculation * Fixed some issues with generator * Fixed some issues * Fixed some bugs * Updated changelog * Fixed parameters generation * Some cool fixes * Removed not needed code * Added check for array * Added optionalBody * Fixed issue with ref request body * Updated logo * Fix binary format for request body * Fixed parsing of swagger response ref * Fixed issue with request body with ref * Fix return type generation * Fixed some border cases * Fixed some issues * Fixed some issues * Fixed conflicts * Fixed conflicts * Some fixes * Fixed some swaggers. Added prerelease label * Made headers non required * Fixed some issues * Changed service to static class * Revert "Changed service to static class" This reverts commit 2a9fe9b. * Fixed class names with dollars * Fixed Issue #202 * Fixed JsonSerializableConverter issue * Fixed test * Updated changelog and pubspec.yaml * Formatted code * Commented some tests * Removed file * Fixed analyser issues * Updated usage of includeIfNull * Updated pubspec and changeloc * Fixed ref * Removed generated code * Fixed some bugs * Formatted code * Fixed special Swagger * Updated pubspec and changelog * formatted code * Commented failed tests Co-authored-by: uladzimir_paliukhovich <> Co-authored-by: Yauhen <ysampir@gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Swagger/Json file example: https://cloud.ibm.com/apidocs/visual-recognition/visual-recognition-v3.json
This has parameter
AcceptLanguage
which has a name with a dashAccept-Language
This generates:
instead of
enums.$V3ClassifyPostAcceptLanguageMap[Accept - Language]
it should callenums.$V3ClassifyPostAcceptLanguageMap[acceptLanguage]
Thanks for this lib btw. 😍. Saves a lot of time.
deps
The text was updated successfully, but these errors were encountered: