Skip to content

Commit 2f54c72

Browse files
Add overrides to get Pydantic validation to pass (#274)
Co-authored-by: Matt Blank <[email protected]>
1 parent a0d5926 commit 2f54c72

File tree

1 file changed

+75
-1
lines changed

1 file changed

+75
-1
lines changed

fern/openapi-overrides.yml

Lines changed: 75 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1428,6 +1428,11 @@ components:
14281428
type:
14291429
enum:
14301430
- tag
1431+
# The spec incorrectly labels applied_at and applied_by as required
1432+
required:
1433+
- type
1434+
- id
1435+
- name
14311436
ticket_custom_attributes:
14321437
x-fern-type: map<string, unknown>
14331438
ticket_request_custom_attributes:
@@ -1479,6 +1484,17 @@ components:
14791484
properties:
14801485
custom_attributes:
14811486
additionalProperties: true
1487+
# The spec incorrectly labels last_request_at, remote_created_at, size, website, and industry as required
1488+
required:
1489+
- company_id
1490+
- id
1491+
- app_id
1492+
- name
1493+
- created_at
1494+
- updated_at
1495+
- monthly_spend
1496+
- session_count
1497+
- user_count
14821498
create_or_update_company_request:
14831499
properties:
14841500
custom_attributes:
@@ -1527,7 +1543,65 @@ components:
15271543
note_list:
15281544
properties:
15291545
pages:
1530-
"$ref": "#/components/schemas/offset_pages"
1546+
# The spec incorrectly labels job_title as required
1547+
admin:
1548+
required:
1549+
- id
1550+
- name
1551+
- email
1552+
- away_mode_enabled
1553+
- away_mode_reassign
1554+
- has_inbox_seat
1555+
- team_ids
1556+
# The spec incorrectly labels default_locale and translated_content as required
1557+
article_list_item:
1558+
required:
1559+
- id
1560+
- workspace_id
1561+
- title
1562+
- description
1563+
- body
1564+
- author_id
1565+
- state
1566+
- created_at
1567+
- updated_at
1568+
- url
1569+
- parent_id
1570+
- parent_type
1571+
- statistics
1572+
1573+
# The spec incorrectly labels conversions as required
1574+
article_statistics:
1575+
required:
1576+
- type
1577+
- views
1578+
- reactions
1579+
- happy_reaction_percentage
1580+
- neutral_reaction_percentage
1581+
- sad_reaction_percentage
1582+
1583+
# The spec incorrectly labels description as required
1584+
data_attribute:
1585+
required:
1586+
- type
1587+
- name
1588+
- full_name
1589+
- label
1590+
- data_type
1591+
1592+
# The spec incorrectly labels type, email, intercom_user_id, and user_id as required
1593+
data_event_summary:
1594+
required:
1595+
- events
1596+
1597+
# The spec incorrectly labels default_locale as required
1598+
collection:
1599+
required:
1600+
- id
1601+
- workspace_id
1602+
- name
1603+
- created_at
1604+
- order
15311605

15321606
securitySchemes:
15331607
bearerAuth:

0 commit comments

Comments
 (0)