-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[Dart] Fix enum generation #6729
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
16e991c
[Dart] Fix enum generation
agilob 9689bdf
Update generated Order file
agilob 7ca7b3d
Re-add constructor
agilob 6b9c5b0
Generate dart2 files
agilob c2751a3
Dart - nicer enum formatting
agilob b55e1a3
Dart - generate enum name as className+enumName
agilob 5f7082e
Dart - dont initialize vars to null by default
agilob 5030a99
Dart - Generate inlined enums and deserialize them
agilob 9e6a682
Merge branch 'master' of github.com:agilob/openapi-generator into 6727
agilob 4c2b320
Merge branch 'master' into 6727
agilob 3ae0100
Dart - Fix using default value
agilob 3bf4c15
Fix typo
agilob 3f8cc2a
Regenerate add dart files
agilob 26ee46c
Merge branch 'master' of github.com:agilob/openapi-generator into 6727
agilob fb09346
dart Revert override for dart dio and jaguar
agilob d38383f
Fix dart model tests
agilob 6b352d8
Merge branch 'master' of github.com:OpenAPITools/openapi-generator in…
agilob 73d45fa
Merge branch 'master' of github.com:OpenAPITools/openapi-generator in…
agilob 3325489
Merge branch 'master' of github.com:OpenAPITools/openapi-generator in…
agilob 7c215c6
Merge branch 'master' of github.com:OpenAPITools/openapi-generator in…
agilob b8e8403
Fix dart1 generated template
agilob c90511c
Merge branch 'master' of github.com:agilob/openapi-generator into 6727
agilob eec86f3
Use {{{datatypeWithEnum}}}
agilob 75c4b8c
Dart - throw when enum not known
agilob b4a3c92
Merge branch 'master' of github.com:OpenAPITools/openapi-generator in…
agilob e7f3e8e
Fix generating enum with datatype from list
agilob File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
2 changes: 1 addition & 1 deletion
2
modules/openapi-generator/src/main/resources/dart/class.mustache
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.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fixes not setting
null
value on properties that don't have default value. Dart is evolving to non-null by default language, so this will be important in the next releases of the language.