Skip to content

feat: allow explicit field clearing for channels#413

Open
liam-mackie wants to merge 1 commit intomainfrom
lm/allow-clearing-fields
Open

feat: allow explicit field clearing for channels#413
liam-mackie wants to merge 1 commit intomainfrom
lm/allow-clearing-fields

Conversation

@liam-mackie
Copy link
Copy Markdown
Contributor

Fixes MD-1804

This PR adds a new, wrapped, UpdateRequest[T] type that can be used to force a resource to send its zero value, rather than nil. This is necessary for some resources, like a channel, to clear a specific property's value on server-side, as the omitempty json tag usually prevents this property being sent over the wire.

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.

1 participant