Skip to content

fix(api): Correct response TypedDicts to match serializer output - #127844

Draft
joshuarli wants to merge 1 commit into
masterfrom
fix/response-typeddict-contracts
Draft

joshuarli wants to merge 1 commit into
masterfrom
fix/response-typeddict-contracts

Conversation

@joshuarli

@joshuarli joshuarli commented Oct 16, 2026 •

Copy link
Copy Markdown
Member

Correct the remaining response TypedDict differences after rebasing onto current master, retaining the API descriptions and contract fixes already merged there.

The remaining generated OpenAPI changes describe crash attachments as objects, allow nullable transaction timestamps, describe issue-view sorts as strings, require the always-present ownership schema, allow nullable release health stats and group counts, and allow session query time values to be datetimes or strings. Project tag-key uniqueValues is nullable when present. Serializer output is unchanged.

The combined integration also applies the release-default drafts #129429 and #129618, so its final health stats and group-count contracts remain non-null. This standalone draft still describes the serializers without those fixes.

Integrated in #130956. This source PR remains a draft and is rebased onto f5c759434c9.

@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 16, 2026
@joshuarli
joshuarli force-pushed the fix/response-typeddict-contracts branch 2 times, most recently from c8d8fab to 4677d52 Compare October 17, 2026 01:08
@getsantry

getsantry Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you remove the label Waiting for: Community, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

Several response TypedDicts declared `str` for values the serializers
return as `datetime`, declared non-null for values that can be null, or
described a nested object as a string or an array as an object. Update
only the annotations so they state what the serializers return; runtime
output is unchanged.

The generated OpenAPI schema now reports `format: date-time` and
`nullable` for these fields, and `crashFile` / monitor `environments`
get their real object / array shapes. Issue view `querySort` is a free
string (the model column is not constrained), so it loses its enum.
@joshuarli
joshuarli force-pushed the fix/response-typeddict-contracts branch from 2785b66 to 3c3d720 Compare November 26, 2026 00:02

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

GitHub Team: python-typing Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant