Skip to content

Commit

Permalink
fix: add slug to spaces as the server now forces you to set one
Browse files Browse the repository at this point in the history
  • Loading branch information
borland committed Oct 3, 2022
1 parent d2c6dc4 commit 8fde6de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pkg/spaces/space.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,11 @@ import (

type Space struct {
Description string `json:"Description,omitempty"`
Slug string `json:"Slug"` // deliberately send empty string
IsDefault bool `json:"IsDefault,omitempty"`
Name string `json:"Name" validate:"required,max=20"`
SpaceManagersTeamMembers []string `json:"SpaceManagersTeamMembers,omitempty"`
SpaceManagersTeams []string `json:"SpaceManagersTeams,omitempty"`
SpaceManagersTeamMembers []string `json:"SpaceManagersTeamMembers"` // deliberately send empty array
SpaceManagersTeams []string `json:"SpaceManagersTeams"` // deliberately send empty array
TaskQueueStopped bool `json:"TaskQueueStopped,omitempty"`

resources.Resource
Expand Down

0 comments on commit 8fde6de

Please sign in to comment.