Skip to content

Commit

Permalink
add workflow_step type to recognized views
Browse files Browse the repository at this point in the history
  • Loading branch information
misscoded authored and seratch committed Sep 17, 2020
1 parent 8f74a4b commit 9784c0a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions slack/web/classes/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class View(JsonObject):
https://api.slack.com/reference/surfaces/views
"""

types = ["modal", "home"]
types = ["modal", "home", "workflow_step"]

attributes = {
"type",
Expand All @@ -38,7 +38,7 @@ class View(JsonObject):

def __init__(
self,
# type's possible values are "modal", "home"
# type's possible values are "modal", "home" and "workflow_step"
type: str, # skipcq: PYL-W0622
id: Optional[str] = None, # skipcq: PYL-W0622
callback_id: Optional[str] = None,
Expand Down Expand Up @@ -88,7 +88,7 @@ def __init__(
private_metadata_max_length = 3000
callback_id_max_length: int = 255

@JsonValidator('type must be either "modal" or "home"')
@JsonValidator('type must be either "modal", "home" or "workflow_step"')
def _validate_type(self):
return self.type is not None and self.type in self.types

Expand Down

0 comments on commit 9784c0a

Please sign in to comment.