mariosimao / notion-sdk-php

A complete Notion SDK for PHP developers.
https://mariosimao.github.io/notion-sdk-php/
MIT License
138 stars 24 forks source link

Add PropertyMetadata's Description #365

Closed juampi92 closed 2 months ago

juampi92 commented 2 months ago

This PR will add the description property for a table's property.

I don't know how recent Notion added this feature, but I noticed it only one or two months ago.

Here is the API documentation about it, and here is how it looks in Notion's UI: image

The API will not send the description if it was not filled, so I tried to follow the same behaviour when doing toArray(). image

I couldn't find anything that would make it backwards incompatible, and the fact that all existing tests pass is a good hint I guess. Let me know if something is missing!

mariosimao commented 2 months ago

@juampi92 thank you very much for your contribution. The latest release at version 1.14.0 now contains support to property description.