|
|
@ -13,6 +13,7 @@ type Organization struct { |
|
|
|
Description string `json:"description"` |
|
|
|
Description string `json:"description"` |
|
|
|
Website string `json:"website"` |
|
|
|
Website string `json:"website"` |
|
|
|
Location string `json:"location"` |
|
|
|
Location string `json:"location"` |
|
|
|
|
|
|
|
LocationCoordinate string `json:"location_coordinate"` |
|
|
|
Visibility string `json:"visibility"` |
|
|
|
Visibility string `json:"visibility"` |
|
|
|
RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"` |
|
|
|
RepoAdminChangeTeamAccess bool `json:"repo_admin_change_team_access"` |
|
|
|
} |
|
|
|
} |
|
|
@ -34,6 +35,7 @@ type CreateOrgOption struct { |
|
|
|
Description string `json:"description" binding:"MaxSize(255)"` |
|
|
|
Description string `json:"description" binding:"MaxSize(255)"` |
|
|
|
Website string `json:"website" binding:"ValidUrl;MaxSize(255)"` |
|
|
|
Website string `json:"website" binding:"ValidUrl;MaxSize(255)"` |
|
|
|
Location string `json:"location" binding:"MaxSize(50)"` |
|
|
|
Location string `json:"location" binding:"MaxSize(50)"` |
|
|
|
|
|
|
|
LocationCoordinate string `json:"location_coordinate" binding:"MaxSize(255)"` |
|
|
|
// possible values are `public` (default), `limited` or `private`
|
|
|
|
// possible values are `public` (default), `limited` or `private`
|
|
|
|
// enum: public,limited,private
|
|
|
|
// enum: public,limited,private
|
|
|
|
Visibility string `json:"visibility" binding:"In(,public,limited,private)"` |
|
|
|
Visibility string `json:"visibility" binding:"In(,public,limited,private)"` |
|
|
@ -48,6 +50,7 @@ type EditOrgOption struct { |
|
|
|
Description string `json:"description" binding:"MaxSize(255)"` |
|
|
|
Description string `json:"description" binding:"MaxSize(255)"` |
|
|
|
Website string `json:"website" binding:"ValidUrl;MaxSize(255)"` |
|
|
|
Website string `json:"website" binding:"ValidUrl;MaxSize(255)"` |
|
|
|
Location string `json:"location" binding:"MaxSize(50)"` |
|
|
|
Location string `json:"location" binding:"MaxSize(50)"` |
|
|
|
|
|
|
|
LocationCoordinate string `json:"location_coordinate" binding:"MaxSize(255)"` |
|
|
|
// possible values are `public`, `limited` or `private`
|
|
|
|
// possible values are `public`, `limited` or `private`
|
|
|
|
// enum: public,limited,private
|
|
|
|
// enum: public,limited,private
|
|
|
|
Visibility string `json:"visibility" binding:"In(,public,limited,private)"` |
|
|
|
Visibility string `json:"visibility" binding:"In(,public,limited,private)"` |
|
|
|