-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[dart] Variable/Operation/Model naming (#8123)
* [dart] Properly escape param/var names that clash with Dart types * [dart] Add tests for var/enumVar names * note: public and private are no keywords in Dart * some tests are still wrong, some are commented out * Fix typo * [dart] Improve variable name escaping * add more tests * [dart] Fix operationId naming * [dart] Fix upper case var name with leading underscore * [dart] Correctly support model prefix/suffix * [dart] Support spaces in property names * Call super for empty operationId * [dart] Fix and improve enumVar naming/generation * use same handling for all 3 generators * allow `updateEnumVarsWithExtensions` to have access to the data type * improve `x-enum-values` handling and add supprt for other enum vendor extensions * remove duplicate and outdated tests from `DartDioModelTest` * add more tests to `DartModelTest` * no longer force lowercase enums for plain dart generator (breaking) * this change also removes the trailing underscore from plain dart generator (breaking)
- Loading branch information
Showing
67 changed files
with
621 additions
and
534 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.