Fix broken database relation request parameters. #404
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
The database relation request parameters are broken.
In Notion API version 2022-06-28, database relations would have a type of
single_property
anddual_property
.The type of
Relation
property of RelationProperty was updated, but that of RelationPropertySchema and RelationUpdatePropertySchema were missed.Fixes #403
Related Notion changelog: https://developers.notion.com/page/changelog#database-relations-have-a-type-of-single_property-and-dual_property
How Has This Been Tested?
I published the package locally and installed it in my projects. The use case is updated as:
My code tries to update a database schema to add a new self-referencing column, which works well now.
Type of change