Codegen: Add support for optional maps (#60883)

This commit is contained in:
sam boyer
2023-01-03 09:12:48 +02:00
committed by GitHub
parent 3ceb3edcb9
commit 7fd1d5cef0
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ type Permission int
// Team defines model for team.
type Team struct {
// AccessControl metadata associated with a given resource.
AccessControl map[string]bool `json:"accessControl"`
AccessControl map[string]bool `json:"accessControl,omitempty"`
// AvatarUrl is the team's avatar URL.
AvatarUrl *string `json:"avatarUrl,omitempty"`