Closed lastorel closed 2 years ago
Same thing happens with rich_text
type, rollup
type, relation
type, people
type,
Expected answers:
2021-12-11 18:33:46,398 - pytion.query - DEBUG - STATUS CODE: 200
2021-12-11 18:33:46,398 - pytion.query - DEBUG - CONTENT: b'{"object":"property_item","type":"files","files":[]}'
2021-12-11 18:33:44,101 - pytion.query - DEBUG - STATUS CODE: 200
2021-12-11 18:33:44,101 - pytion.query - DEBUG - CONTENT: b'{"object":"property_item","type":"last_edited_time","last_edited_time":"2021-11-04T16:47:00.000Z"}'
relation
- list (always)
rich_text
- list (always)
people
- list (always)
title
- list (always)
rollup
- list AND rollup result if not empty
rollup
- API returns validation error if content is None.
relation
- API should return relation
key in dict like in Retrieve a page. But it returns list format with results
key:
Retrieving page
type: relation
relation:
- relation dict 1
- relation dict 2
Retrieving a page property item
object: list
results:
- relation dict 1
- relation dict 2
From docs:
Each individual property_item properties will have a type and under the the key with the value for type, an object that identifies the property value
I wanna to resolve which type of properties i receive without searching deeper. But I see a list only. Inconsistent view. It is not trivial to create processor for that changes.
.get_page_property("title")
triggers that exception. While requesting/properties/title
I can see unexpected list format: