Skip to content

Fix: allow partial user objects for created_by and last_edited_by page properties #17

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 3 commits into from
Jul 15, 2025

Conversation

joscha
Copy link
Collaborator

@joscha joscha commented Jul 15, 2025

When a user gets deleted from a Notion workspace, then page properties referencing such users (created_by, last_edited_by) have only a { object: 'user', id: <uuid> } partial user object.

I deliberately did not add the DeletedUserObject class to the UserObject union, as responses from the Notion user API for example never return partial user objects.

cc @stevieflyer

@joscha joscha changed the title Joscha/partial-user Fix: allow partial user objects for created_by and last_modified_by page properties Jul 15, 2025
@joscha joscha changed the title Fix: allow partial user objects for created_by and last_modified_by page properties Fix: allow partial user objects for created_by and last_edited_by page properties Jul 15, 2025
@joscha joscha merged commit cf99d90 into main Jul 15, 2025
8 checks passed
@joscha joscha deleted the joscha/partial-user branch July 15, 2025 13:35
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.

1 participant