Skip to content
This repository has been archived by the owner on Nov 30, 2023. It is now read-only.

Commit

Permalink
Add omitempty
Browse files Browse the repository at this point in the history
Signed-off-by: KeisukeYamashita <19yamashita15@gmail.com>
  • Loading branch information
KeisukeYamashita committed May 17, 2021
1 parent eedb8ad commit 12c09dc
Show file tree
Hide file tree
Showing 4 changed files with 108 additions and 130 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,5 @@
# Output of the go coverage tool, specifically when used with LiteIDE
*.out


# Environment variable
.envrc
2 changes: 1 addition & 1 deletion notion/pages.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ func (s *PagesService) Get(ctx context.Context, pageID string) (*Page, error) {
type CreatePageRequest struct {
Parent Parent `json:"parent" mapstructure:"parent"`
Properties map[string]Property `json:"properties" mapstructure:"properties"`
Children []Block `json:"children" mapstructure:"children"`
Children []Block `json:"children,omitempty" mapstructure:"children"`
}

// Create page.
Expand Down

0 comments on commit 12c09dc

Please sign in to comment.