@@ -7,22 +7,24 @@ Types describe the data model of your API.
77
88## Built-in types
99
10- - ` string `
11- - ` integer `
12- - ` long `
13- - ` double `
14- - ` boolean `
15- - ` datetime ` _ An [ RFC 3339, section 5.6 datetime] ( https://ijmacd.github.io/rfc3339-iso8601/ ) . For example, ` 2017-07-21T17:32:28Z ` ._
16- - ` date ` _ An RFC 3339, section 5.6 date (YYYY-MM-DD). For example, ` 2017-07-21 ` ._
17- - ` uuid `
18- - ` base64 `
19- - ` list ` _ e.g., list\< string\> _
20- - ` set ` _ e.g., set\< string\> _
21- - ` map ` _ e.g., map\< string, integer\> _
22- - ` optional ` _ e.g., optional\< string\> _
23- - ` literal ` _ e.g., literal\< "Plants"\> _
24- - ` file ` _ e.g., [ file uploads] ( /learn/api-definition/fern/endpoints/multipart ) _
25- - ` unknown ` _ Represents arbitrary JSON._
10+ | Type | Description |
11+ | ------| -------------|
12+ | ` string ` | Basic string type |
13+ | ` integer ` | Integer number type |
14+ | ` long ` | Long integer type |
15+ | ` double ` | Double precision floating point |
16+ | ` boolean ` | Boolean true/false |
17+ | ` datetime ` | An [ RFC 3339, section 5.6 datetime] ( https://ijmacd.github.io/rfc3339-iso8601/ ) . For example, ` 2017-07-21T17:32:28Z ` |
18+ | ` date ` | An RFC 3339, section 5.6 date (YYYY-MM-DD). For example, ` 2017-07-21 ` |
19+ | ` uuid ` | UUID identifier |
20+ | ` base64 ` | Base64 encoded data |
21+ | ` list ` | An ordered collection that allows duplicates, e.g., ` list<string> ` |
22+ | ` set ` | An unordered collection with unique elements, e.g., ` set<string> ` |
23+ | ` map ` | Key-value mapping, e.g., ` map<string, integer> ` |
24+ | ` optional ` | Optional value, e.g., ` optional<string> ` |
25+ | ` literal ` | Literal value, e.g., ` literal<"Plants"> ` |
26+ | ` file ` | File upload type, e.g., [ file uploads] ( /learn/api-definition/fern/endpoints/multipart ) |
27+ | ` unknown ` | Represents arbitrary JSON |
2628
2729## Custom types
2830
@@ -276,4 +278,4 @@ interface Person {
276278 age: number;
277279}
278280` ` `
279- </CodeBlock>
281+ </CodeBlock>
0 commit comments