Fix docs minLength
This commit is contained in:
parent
dea25091c0
commit
42e60141ce
|
@ -27,7 +27,7 @@ type Label struct {
|
||||||
// The unique, numeric id of this label.
|
// The unique, numeric id of this label.
|
||||||
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id" param:"label"`
|
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id" param:"label"`
|
||||||
// The title of the lable. You'll see this one on tasks associated with it.
|
// The title of the lable. You'll see this one on tasks associated with it.
|
||||||
Title string `xorm:"varchar(250) not null" json:"title" valid:"runelength(1|250)" minLength:"3" maxLength:"250"`
|
Title string `xorm:"varchar(250) not null" json:"title" valid:"runelength(1|250)" minLength:"1" maxLength:"250"`
|
||||||
// The label description.
|
// The label description.
|
||||||
Description string `xorm:"longtext null" json:"description"`
|
Description string `xorm:"longtext null" json:"description"`
|
||||||
// The color this label has
|
// The color this label has
|
||||||
|
|
|
@ -32,7 +32,7 @@ type List struct {
|
||||||
// The unique, numeric id of this list.
|
// The unique, numeric id of this list.
|
||||||
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id" param:"list"`
|
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id" param:"list"`
|
||||||
// The title of the list. You'll see this in the namespace overview.
|
// The title of the list. You'll see this in the namespace overview.
|
||||||
Title string `xorm:"varchar(250) not null" json:"title" valid:"required,runelength(1|250)" minLength:"3" maxLength:"250"`
|
Title string `xorm:"varchar(250) not null" json:"title" valid:"required,runelength(1|250)" minLength:"1" maxLength:"250"`
|
||||||
// The description of the list.
|
// The description of the list.
|
||||||
Description string `xorm:"longtext null" json:"description"`
|
Description string `xorm:"longtext null" json:"description"`
|
||||||
// The unique list short identifier. Used to build task identifiers.
|
// The unique list short identifier. Used to build task identifiers.
|
||||||
|
|
|
@ -30,7 +30,7 @@ type Namespace struct {
|
||||||
// The unique, numeric id of this namespace.
|
// The unique, numeric id of this namespace.
|
||||||
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id" param:"namespace"`
|
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id" param:"namespace"`
|
||||||
// The name of this namespace.
|
// The name of this namespace.
|
||||||
Title string `xorm:"varchar(250) not null" json:"title" valid:"required,runelength(1|250)" minLength:"5" maxLength:"250"`
|
Title string `xorm:"varchar(250) not null" json:"title" valid:"required,runelength(1|250)" minLength:"1" maxLength:"250"`
|
||||||
// The description of the namespace
|
// The description of the namespace
|
||||||
Description string `xorm:"longtext null" json:"description"`
|
Description string `xorm:"longtext null" json:"description"`
|
||||||
OwnerID int64 `xorm:"int(11) not null INDEX" json:"-"`
|
OwnerID int64 `xorm:"int(11) not null INDEX" json:"-"`
|
||||||
|
|
|
@ -37,7 +37,7 @@ type Task struct {
|
||||||
// The unique, numeric id of this task.
|
// The unique, numeric id of this task.
|
||||||
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id" param:"listtask"`
|
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id" param:"listtask"`
|
||||||
// The task text. This is what you'll see in the list.
|
// The task text. This is what you'll see in the list.
|
||||||
Title string `xorm:"varchar(250) not null" json:"title" valid:"runelength(1|250)" minLength:"3" maxLength:"250"`
|
Title string `xorm:"varchar(250) not null" json:"title" valid:"runelength(1|250)" minLength:"1" maxLength:"250"`
|
||||||
// The task description.
|
// The task description.
|
||||||
Description string `xorm:"longtext null" json:"description"`
|
Description string `xorm:"longtext null" json:"description"`
|
||||||
// Whether a task is done or not.
|
// Whether a task is done or not.
|
||||||
|
|
|
@ -29,7 +29,7 @@ type Team struct {
|
||||||
// The unique, numeric id of this team.
|
// The unique, numeric id of this team.
|
||||||
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id" param:"team"`
|
ID int64 `xorm:"int(11) autoincr not null unique pk" json:"id" param:"team"`
|
||||||
// The name of this team.
|
// The name of this team.
|
||||||
Name string `xorm:"varchar(250) not null" json:"name" valid:"required,runelength(1|250)" minLength:"5" maxLength:"250"`
|
Name string `xorm:"varchar(250) not null" json:"name" valid:"required,runelength(1|250)" minLength:"1" maxLength:"250"`
|
||||||
// The team's description.
|
// The team's description.
|
||||||
Description string `xorm:"longtext null" json:"description"`
|
Description string `xorm:"longtext null" json:"description"`
|
||||||
CreatedByID int64 `xorm:"int(11) not null INDEX" json:"-"`
|
CreatedByID int64 `xorm:"int(11) not null INDEX" json:"-"`
|
||||||
|
|
Loading…
Reference in New Issue