Skip to content
This repository has been archived by the owner on Jun 18, 2021. It is now read-only.

Commit

Permalink
Fixing main sys type
Browse files Browse the repository at this point in the history
Correcting the PublishedBy and UpdatedBy fields to include the sys key.
  • Loading branch information
VigRoco authored Apr 8, 2021
1 parent c2cba1b commit fcb3c4a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions types.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,18 @@ type Sys struct {
LinkType string `json:"linkType,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
UpdatedAt string `json:"updatedAt,omitempty"`
UpdatedBy *Sys `json:"updatedBy,omitempty"`
UpdatedBy struct{
*Sys `json:"sys,omitempty"`
} `json:"updatedBy,omitempty"`
Version int `json:"version,omitempty"`
Revision int `json:"revision,omitempty"`
ContentType *ContentType `json:"contentType,omitempty"`
Space *Space `json:"space,omitempty"`
FirstPublishedAt string `json:"firstPublishedAt,omitempty"`
PublishedCounter int `json:"publishedCounter,omitempty"`
PublishedAt string `json:"publishedAt,omitempty"`
PublishedBy *Sys `json:"publishedBy,omitempty"`
PublishedBy struct {
*Sys `json:"sys,omitempty"`
} `json:"publishedBy,omitempty"`
PublishedVersion int `json:"publishedVersion,omitempty"`
}

0 comments on commit fcb3c4a

Please sign in to comment.