Skip to content

Commit 358b47b

Browse files
committed
issue-59: fixed Editor property
Fix Editor property Update content.go
1 parent 4800c7a commit 358b47b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ type Metadata struct {
4242

4343
// Properties defines properties of the editor
4444
type Properties struct {
45-
Editor *Editor `json:"editor"`
46-
ContentAppearanceDraft *ContentAppearanceDraft `json:"content_appearance_draft"`
47-
ContentAppearancePublished *ContentAppearancePublished `json:"content_appearance_published"`
45+
Editor *Editor `json:"editor,omitempty"`
46+
ContentAppearanceDraft *ContentAppearanceDraft `json:"content-appearance-draft"`
47+
ContentAppearancePublished *ContentAppearancePublished `json:"content-appearance-published"`
4848
}
4949

5050
// Editor contains editor information

0 commit comments

Comments
 (0)