Skip to content

Commit bdfe250

Browse files
Fix required fields in schema overrides (#349)
Correct the `required` arrays for multiple schemas to exclude nullable fields and include `type` where it was missing: - admin: add missing `type` field - article_list_item: exclude nullable `description`, `body`, `statistics` - company: add missing `type` field - contact: exclude 16+ nullable fields that were incorrectly required - conversation: add required fields excluding nullable ones - data_event: add missing `type` field - message: exclude `subject` (only present for email type) - note: exclude nullable `contact` and `author` fields - ticket: exclude nullable `ticket_type` field - visitor: add required fields (was missing entirely) Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 184e88b commit bdfe250

File tree

1 file changed

+89
-1
lines changed

1 file changed

+89
-1
lines changed

fern/openapi-overrides.yml

Lines changed: 89 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1829,7 +1829,40 @@ components:
18291829
example:
18301830
monthly_spend: '155.5'
18311831

1832-
# enum additions
1832+
# enum additions and required field corrections
1833+
admin:
1834+
required:
1835+
- type
1836+
- id
1837+
- name
1838+
- email
1839+
- job_title
1840+
- away_mode_enabled
1841+
- away_mode_reassign
1842+
- has_inbox_seat
1843+
- team_ids
1844+
article_list_item:
1845+
required:
1846+
- id
1847+
- workspace_id
1848+
- title
1849+
- author_id
1850+
- state
1851+
- created_at
1852+
- updated_at
1853+
- url
1854+
- parent_id
1855+
- parent_type
1856+
- default_locale
1857+
company:
1858+
required:
1859+
- type
1860+
- company_id
1861+
- id
1862+
- app_id
1863+
- name
1864+
- created_at
1865+
- updated_at
18331866
contact:
18341867
properties:
18351868
type:
@@ -1841,6 +1874,29 @@ components:
18411874
format: uri
18421875
description: An image URL containing the avatar of a contact.
18431876
example: https://example.org/128Wash.jpg
1877+
required:
1878+
- type
1879+
- id
1880+
- workspace_id
1881+
- role
1882+
- has_hard_bounced
1883+
- marked_email_as_spam
1884+
- unsubscribed_from_emails
1885+
- created_at
1886+
- updated_at
1887+
conversation:
1888+
required:
1889+
- type
1890+
- id
1891+
- created_at
1892+
- updated_at
1893+
- open
1894+
- state
1895+
- read
1896+
- source
1897+
- contacts
1898+
- teammates
1899+
- custom_attributes
18441900
content_source:
18451901
properties:
18461902
content_type:
@@ -1852,11 +1908,30 @@ components:
18521908
enum:
18531909
- collection
18541910
- section
1911+
data_event:
1912+
required:
1913+
- type
1914+
- event_name
1915+
- created_at
18551916
error:
18561917
properties:
18571918
type:
18581919
enum:
18591920
- error.list
1921+
message:
1922+
required:
1923+
- type
1924+
- id
1925+
- created_at
1926+
- body
1927+
- message_type
1928+
- conversation_id
1929+
note:
1930+
required:
1931+
- type
1932+
- id
1933+
- created_at
1934+
- body
18601935
social_profile:
18611936
properties:
18621937
type:
@@ -1877,6 +1952,15 @@ components:
18771952
- type
18781953
- id
18791954
- name
1955+
ticket:
1956+
required:
1957+
- type
1958+
- id
1959+
- ticket_id
1960+
- category
1961+
- ticket_attributes
1962+
- ticket_state
1963+
- contacts
18801964
ticket_custom_attributes:
18811965
x-fern-type: map<string, unknown>
18821966
ticket_request_custom_attributes:
@@ -1905,6 +1989,10 @@ components:
19051989
type:
19061990
enum:
19071991
- visitor
1992+
required:
1993+
- type
1994+
- id
1995+
- user_id
19081996

19091997
# change teammates.teammates to teammates.admins
19101998
conversation_teammates:

0 commit comments

Comments
 (0)