Create a new modal view using Slack's block kit builder tool with 2 input blocks. (note: as generated, there are no block_ids set on the input blocks.)
Save view JSON to file or in code literal
Unmarshal view JSON to slack.ModalViewRequest
Attempt to slack.Client.Open() the slack.ModalViewRequest
What happened
Opening a
slack.ModalViewRequest
created from unmarshalled JSON produced by Slack's block kit builder fails when noblock_id
JSON fields are present.Slack documentation states that
block_id
is NOT required.Comment for
views.go/ValidateUniqueBlockID
func states it "will verify ... if set" but doesn't appear to check that.Expected behavior
View should open
Steps to reproduce
block_id
s set on the input blocks.)slack.ModalViewRequest
slack.Client.Open()
theslack.ModalViewRequest
Block ID needs to be unique
reproducible code
Versions