Skip to content

Add overrides to get Pydantic validation to pass #274

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 26, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 75 additions & 1 deletion fern/openapi-overrides.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1428,6 +1428,11 @@ components:
type:
enum:
- tag
# The spec incorrectly labels applied_at and applied_by as required
required:
- type
- id
- name
ticket_custom_attributes:
x-fern-type: map<string, unknown>
ticket_request_custom_attributes:
Expand Down Expand Up @@ -1479,6 +1484,17 @@ components:
properties:
custom_attributes:
additionalProperties: true
# The spec incorrectly labels last_request_at, remote_created_at, size, website, and industry as required
required:
- company_id
- id
- app_id
- name
- created_at
- updated_at
- monthly_spend
- session_count
- user_count
create_or_update_company_request:
properties:
custom_attributes:
Expand Down Expand Up @@ -1527,7 +1543,65 @@ components:
note_list:
properties:
pages:
"$ref": "#/components/schemas/offset_pages"
# The spec incorrectly labels job_title as required
admin:
required:
- id
- name
- email
- away_mode_enabled
- away_mode_reassign
- has_inbox_seat
- team_ids
# The spec incorrectly labels default_locale and translated_content as required
article_list_item:
required:
- id
- workspace_id
- title
- description
- body
- author_id
- state
- created_at
- updated_at
- url
- parent_id
- parent_type
- statistics

# The spec incorrectly labels conversions as required
article_statistics:
required:
- type
- views
- reactions
- happy_reaction_percentage
- neutral_reaction_percentage
- sad_reaction_percentage

# The spec incorrectly labels description as required
data_attribute:
required:
- type
- name
- full_name
- label
- data_type

# The spec incorrectly labels type, email, intercom_user_id, and user_id as required
data_event_summary:
required:
- events

# The spec incorrectly labels default_locale as required
collection:
required:
- id
- workspace_id
- name
- created_at
- order

securitySchemes:
bearerAuth:
Expand Down