Skip to content

Commit a002c71

Browse files
pkubickiclaude
andcommitted
fix(dataEvents): widen event metadata typing beyond string
Event metadata accepts string, number, date, link, rich link, and monetary amount values (per public docs and server-side handling in Events::MetadataFormatter), but the preview OpenAPI schema restricts it to additionalProperties.type: string, generating metadata as Record<string, string> in intercom-node's unstable resources. Widen to additionalProperties: true so generated SDKs type it as Record<string, unknown>. Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 194be75 commit a002c71

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

fern/preview-openapi-overrides.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,16 @@ components:
114114
custom_attributes:
115115
example:
116116
monthly_spend: '155.5'
117+
# event metadata accepts string, number, date, link, rich link, and monetary
118+
# amount values, not just strings — widen from additionalProperties.type: string
119+
create_data_event_request:
120+
properties:
121+
metadata:
122+
additionalProperties: true
123+
data_event:
124+
properties:
125+
metadata:
126+
additionalProperties: true
117127
create_ticket_request:
118128
x-fern-type-name: CreateTicketRequestBody
119129
properties:

0 commit comments

Comments
 (0)