This commit is contained in:
Adrien Marquès 2018-10-02 12:05:01 +02:00
parent e15772c2f4
commit 9def4e6c03
1 changed files with 5 additions and 5 deletions

View File

@ -476,13 +476,13 @@ To add a new type, just open the file `/build/api/Checker.php` and add an entry
|Type|Example|Description| |Type|Example|Description|
|---|---|---| |---|---|---|
|`any`|`[9,"a"]`, `"a"`|Any data (can be simple or complex)| |`any`|`[9,"a"]`, `"a"`|Any data (can be simple or complex)|
|`id`|`10`, `"23"`|Positive integer number| |`id`|`10`, `23`|Positive integer number|
|`int`|`-10`, `"23"`|Any integer number| |`int`|`-10`, `23`|Any integer number|
|`float`|`-10.2`, `"23.5"`|Any float| |`float`|`-10.2`, `23.5`|Any float|
|`text`|`"Hello!"`|String that can be of any length (even empty)| |`string`|`"Hello!"`|String that can be of any length (even empty)|
|`digest(L)`|`"4612473aa81f93a878..."`|String with a length of `L`, containing only hexadecimal lowercase characters.| |`digest(L)`|`"4612473aa81f93a878..."`|String with a length of `L`, containing only hexadecimal lowercase characters.|
|`mail`|`"a.b@c.def"`|Valid email address| |`mail`|`"a.b@c.def"`|Valid email address|
|`array`|`[]`, `[1, 3]`|Any array| |`array`|`[]`, `[1, "a"]`|Any array|
|`bool`|`true`, `false`|Boolean| |`bool`|`true`, `false`|Boolean|
|`varchar(a,b)`|`"Hello!"`|String with a length between `a` and `b` (included)| |`varchar(a,b)`|`"Hello!"`|String with a length between `a` and `b` (included)|