Skip to content

Conversation

@joscha
Copy link
Collaborator

@joscha joscha commented Mar 19, 2025

This actually results in page properties not being deserialized correctly at the moment - each property in Page.properties is a dict instead of a BaseModel subtype.

Current workaround is:

page_property_adapter = TypeAdapter(PageProperty)
...
for prop_raw in page.properties
    if prop_raw is None:
        continue
    prop: PageProperty = page_property_adapter.validate_python(prop_raw)

@stevieflyer stevieflyer merged commit a3dc770 into stevieflyer:main Mar 19, 2025
@joscha joscha deleted the patch-3 branch March 19, 2025 16:10
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.

2 participants