[dart-gen] Fix lists containing atomic types (#3210)

This commit is contained in:
fondoger
2023-05-09 05:00:46 +08:00
committed by GitHub
parent 1853428011
commit c22bc1c8ea
3 changed files with 10 additions and 2 deletions

View File

@@ -71,7 +71,11 @@ func isListType(s string) bool {
}
func isClassListType(s string) bool {
return strings.HasPrefix(s, "List<") && !isAtomicType(getCoreType(s))
return isListType(s) && !isAtomicType(getCoreType(s))
}
func isAtomicListType(s string) bool {
return isListType(s) && isAtomicType(getCoreType(s))
}
func isListItemsNullable(s string) bool {