Skip to content

fix(api-client): add passthrough to schemas and fix substatus type - #647

Merged
dcramer merged 1 commit into
mainfrom
update-issue-fix
Nov 20, 2025
Merged

dcramer merged 1 commit into
mainfrom
update-issue-fix

Conversation

@dcramer

@dcramer dcramer commented Nov 20, 2025

Copy link
Copy Markdown
Member

Add .passthrough() to UserSchema, OrganizationSchema, TeamSchema, ProjectSchema, ClientKeySchema, and IssueSchema to allow additional fields from the API that aren't explicitly defined in the schema.

Change IssueSchema.substatus from .optional() to .nullable().optional() to correctly handle cases where the API returns null for this field.

This ensures API responses with extra or null fields don't fail validation, improving robustness when the Sentry API evolves.

Should fix #646

Add .passthrough() to UserSchema, OrganizationSchema, TeamSchema,
ProjectSchema, ClientKeySchema, and IssueSchema to allow additional
fields from the API that aren't explicitly defined in the schema.

Change IssueSchema.substatus from .optional() to .nullable().optional()
to correctly handle cases where the API returns null for this field.

This ensures API responses with extra or null fields don't fail
validation, improving robustness when the Sentry API evolves.

Co-Authored-By: Claude Code <[email protected]>
@dcramer
dcramer merged commit f90b05d into main Nov 20, 2025
@dcramer
dcramer deleted the update-issue-fix branch November 20, 2025 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

update_issue returns API errors but operations succeed

1 participant