forked from glideapps/quicktype
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Dart Freezed naming for nested objects
Fixes glideapps#2660 Modify the naming convention for nested objects in Dart Freezed class generation to include the parent object name. * **DartRenderer.ts** - Update `dartType` method to include the parent object name for nested objects. - Adjust `emitFreezedClassDefinition` and `emitClassDefinition` methods to handle the new naming convention for nested objects. - Modify `_emitVariables` method to use the new naming convention for nested objects. * **parser.dart** - Add tests for the new functionality to ensure nested objects include the parent object name. - Implement `testNestedObjectNaming` function to validate the new naming convention for nested objects. TODO: - [ ] Make sure tests work - [ ] Make sure this offers backwards compatibility --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/glideapps/quicktype/issues/2660?shareId=XXXX-XXXX-XXXX-XXXX).
- Loading branch information
1 parent
29bb816
commit 0dc83ca
Showing
2 changed files
with
40 additions
and
8 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