Skip to content

Commit

Permalink
Add omitempty on Properties for PageUpdateRequest, legit for archivin…
Browse files Browse the repository at this point in the history
…g a page
  • Loading branch information
alfred-sa committed Sep 21, 2024
1 parent ab55fc6 commit ac0ebe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion page.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ type PageUpdateRequest struct {
// The property values to update for the page. The keys are the names or IDs
// of the property and the values are property values. If a page property ID
// is not included, then it is not changed.
Properties Properties `json:"properties"`
Properties Properties `json:"properties,omitempty"`
// Whether the page is archived (deleted). Set to true to archive a page. Set
// to false to un-archive (restore) a page.
Archived bool `json:"archived"`
Expand Down

0 comments on commit ac0ebe0

Please sign in to comment.