From e280d147ba778701896b189dfed3732ac35f8c09 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 31 Jul 2025 04:26:37 +0000 Subject: [PATCH 1/2] Update types.mdx based on issue #260 --- fern/products/fern-def/pages/types.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fern/products/fern-def/pages/types.mdx b/fern/products/fern-def/pages/types.mdx index 894f06b53..f2144d990 100644 --- a/fern/products/fern-def/pages/types.mdx +++ b/fern/products/fern-def/pages/types.mdx @@ -16,8 +16,8 @@ Types describe the data model of your API. - `date` _An RFC 3339, section 5.6 date (YYYY-MM-DD). For example, `2017-07-21`._ - `uuid` - `base64` -- `list` _e.g., list\_ -- `set` _e.g., set\_ +- `list` _An ordered collection that allows duplicates, e.g., list\_ +- `set` _An unordered collection with unique elements, e.g., set\_ - `map` _e.g., map\_ - `optional` _e.g., optional\_ - `literal` _e.g., literal\<"Plants"\>_ @@ -276,4 +276,4 @@ interface Person { age: number; } ``` - + \ No newline at end of file From 9dca0cb7900325dba1c2bc23e2f0eab29c043479 Mon Sep 17 00:00:00 2001 From: Devin Logan Date: Thu, 31 Jul 2025 11:10:16 -0400 Subject: [PATCH 2/2] add a table for readability --- fern/products/fern-def/pages/types.mdx | 34 ++++++++++++++------------ 1 file changed, 18 insertions(+), 16 deletions(-) diff --git a/fern/products/fern-def/pages/types.mdx b/fern/products/fern-def/pages/types.mdx index f2144d990..3769526f6 100644 --- a/fern/products/fern-def/pages/types.mdx +++ b/fern/products/fern-def/pages/types.mdx @@ -7,22 +7,24 @@ Types describe the data model of your API. ## Built-in types -- `string` -- `integer` -- `long` -- `double` -- `boolean` -- `datetime` _An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/). For example, `2017-07-21T17:32:28Z`._ -- `date` _An RFC 3339, section 5.6 date (YYYY-MM-DD). For example, `2017-07-21`._ -- `uuid` -- `base64` -- `list` _An ordered collection that allows duplicates, e.g., list\_ -- `set` _An unordered collection with unique elements, e.g., set\_ -- `map` _e.g., map\_ -- `optional` _e.g., optional\_ -- `literal` _e.g., literal\<"Plants"\>_ -- `file` _e.g., [file uploads](/learn/api-definition/fern/endpoints/multipart)_ -- `unknown` _Represents arbitrary JSON._ +| Type | Description | +|------|-------------| +| `string` | Basic string type | +| `integer` | Integer number type | +| `long` | Long integer type | +| `double` | Double precision floating point | +| `boolean` | Boolean true/false | +| `datetime` | An [RFC 3339, section 5.6 datetime](https://ijmacd.github.io/rfc3339-iso8601/). For example, `2017-07-21T17:32:28Z` | +| `date` | An RFC 3339, section 5.6 date (YYYY-MM-DD). For example, `2017-07-21` | +| `uuid` | UUID identifier | +| `base64` | Base64 encoded data | +| `list` | An ordered collection that allows duplicates, e.g., `list` | +| `set` | An unordered collection with unique elements, e.g., `set` | +| `map` | Key-value mapping, e.g., `map` | +| `optional` | Optional value, e.g., `optional` | +| `literal` | Literal value, e.g., `literal<"Plants">` | +| `file` | File upload type, e.g., [file uploads](/learn/api-definition/fern/endpoints/multipart) | +| `unknown` | Represents arbitrary JSON | ## Custom types