|
|
@ -22,9 +22,9 @@ type CreateOrgOption struct { |
|
|
|
// required: true
|
|
|
|
// required: true
|
|
|
|
UserName string `json:"username" binding:"Required"` |
|
|
|
UserName string `json:"username" binding:"Required"` |
|
|
|
FullName string `json:"full_name"` |
|
|
|
FullName string `json:"full_name"` |
|
|
|
Description string `json:"description"` |
|
|
|
Description string `json:"description" binding:"MaxSize(255)"` |
|
|
|
Website string `json:"website"` |
|
|
|
Website string `json:"website" binding:"ValidUrl;MaxSize(255)"` |
|
|
|
Location string `json:"location"` |
|
|
|
Location string `json:"location" binding:"MaxSize(50)"` |
|
|
|
// 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)"` |
|
|
@ -34,9 +34,9 @@ type CreateOrgOption struct { |
|
|
|
// EditOrgOption options for editing an organization
|
|
|
|
// EditOrgOption options for editing an organization
|
|
|
|
type EditOrgOption struct { |
|
|
|
type EditOrgOption struct { |
|
|
|
FullName string `json:"full_name"` |
|
|
|
FullName string `json:"full_name"` |
|
|
|
Description string `json:"description"` |
|
|
|
Description string `json:"description" binding:"MaxSize(255)"` |
|
|
|
Website string `json:"website"` |
|
|
|
Website string `json:"website" binding:"ValidUrl;MaxSize(255)"` |
|
|
|
Location string `json:"location"` |
|
|
|
Location string `json:"location" binding:"MaxSize(50)"` |
|
|
|
// 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)"` |
|
|
|