Skip to content
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

fix: Allow emoji value in plain text blocks to be null #1354

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

calebmckay
Copy link
Contributor

Fixes #1332.

This PR adds the guregu/null package to allow setting null values from parsed JSON payloads. In particular, this is used for the emoji field of plain text blocks, which was previously incorrectly marshalling to JSON due to a "false" value being omitted.

I opted not to change the signature of NewTextBlockObject, since the null value is only expected when unmarshalling, and the user should know which value they need to use when creating the block.

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.

Unable to disable emojis in plain text blocks
1 participant