Skip to content

Commit bb322af

Browse files
authored
Merge pull request #268 from platformsh/mockapi-org-types
mockapi: support organization types
2 parents e8545c7 + 7c630d2 commit bb322af

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pkg/mockapi/model.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@ type Deployment struct {
162162

163163
type Org struct {
164164
ID string `json:"id"`
165+
Type string `json:"type"`
165166
Name string `json:"name"`
166167
Label string `json:"label"`
167168
Owner string `json:"owner_id"`
@@ -172,6 +173,7 @@ type Org struct {
172173
func (o *Org) AsRef() *OrgRef {
173174
return &OrgRef{
174175
ID: o.ID,
176+
Type: o.Type,
175177
Name: o.Name,
176178
Label: o.Label,
177179
Owner: o.Owner,
@@ -180,6 +182,7 @@ func (o *Org) AsRef() *OrgRef {
180182

181183
type OrgRef struct {
182184
ID string `json:"id"`
185+
Type string `json:"type"`
183186
Name string `json:"name"`
184187
Label string `json:"label"`
185188
Owner string `json:"owner_id"`

0 commit comments

Comments
 (0)