Skip to content

Commit 58ae9f5

Browse files
🌿 Fern Scribe: update docs for list and set built in types... (#265)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: Devin Logan <[email protected]>
1 parent a51c473 commit 58ae9f5

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

‎fern/products/fern-def/pages/types.mdx‎

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)