Skip to content

Commit 599934b

Browse files
authored
Add spaceOwnerId field to SpaceSchemeV2 (#420)
Add spaceOwnerId field to SpaceSchemeV2 struct Adds the missing spaceOwnerId field to the SpaceSchemeV2 struct to support the Confluence v2 API response. This field represents the account ID of the current space owner, which can differ from the space creator. The field enables use cases such as: - Space ownership reports - Contacting space owners - Access management Fixes #419
1 parent 012e135 commit 599934b

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

pkg/infra/models/confluence_space_v2.go

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,14 @@ type GetSpacesOptionSchemeV2 struct {
2727

2828
// SpaceSchemeV2 represents a space in Confluence.
2929
type SpaceSchemeV2 struct {
30-
ID string `json:"id,omitempty"` // The ID of the space.
31-
Key string `json:"key,omitempty"` // The key of the space.
32-
Name string `json:"name,omitempty"` // The name of the space.
33-
Type string `json:"type,omitempty"` // The type of the space.
34-
Status string `json:"status,omitempty"` // The status of the space.
35-
HomepageID string `json:"homepageId,omitempty"` // The ID of the home page of the space.
36-
Description *SpaceDescriptionSchemeV2 `json:"description,omitempty"` // The description of the space.
30+
ID string `json:"id,omitempty"` // The ID of the space.
31+
Key string `json:"key,omitempty"` // The key of the space.
32+
Name string `json:"name,omitempty"` // The name of the space.
33+
Type string `json:"type,omitempty"` // The type of the space.
34+
Status string `json:"status,omitempty"` // The status of the space.
35+
SpaceOwnerID string `json:"spaceOwnerId,omitempty"` // The account ID of the current space owner. This can differ from the space creator.
36+
HomepageID string `json:"homepageId,omitempty"` // The ID of the home page of the space.
37+
Description *SpaceDescriptionSchemeV2 `json:"description,omitempty"` // The description of the space.
3738
}
3839

3940
// SpaceDescriptionSchemeV2 represents the description of a space in Confluence.

0 commit comments

Comments
 (0)