HubSpot / slack-client

An asynchronous HTTP client for Slack's web API
Apache License 2.0
115 stars 53 forks source link

Add STATIC_SELECT input type to BlockKit input types enum #271

Closed zmarushchak-hs closed 2 years ago

zmarushchak-hs commented 2 years ago

STATIC_SELECT value is missing in ViewInputType enums, causing static_select input type to be deserialized to unknown. Enum updated in this PR, so ViewStaticSelect type can be built for static_select.

Error example: {"status":"error","message":"Invalid input JSON on line 1, column 3088: Could not resolve type id 'unknown' as a subtype of `com.hubspot.slack.client.models.interaction.views.ViewInput`: known type ids = [checkboxes, conversations_select, datepicker, external_select, multi_static_select, plain_text_input, radio_buttons, static_select, users_select] (for POJO property 'values')","correlationId":"12be0c36-06a8-457e-a73a-a6f98c463169"}