Skip to content

Commit 0d25aea

Browse files
fwump38seratch
authored andcommitted
Removed JsonValidator to allow App Home to use Input Blocks
1 parent 0495601 commit 0d25aea

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

slack/web/classes/views.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,6 @@ def _validate_title_length(self):
100100
def _validate_blocks_length(self):
101101
return self.blocks is None or 0 < len(self.blocks) <= self.blocks_max_length
102102

103-
@JsonValidator("home view cannot have input blocks")
104-
def _validate_input_blocks(self):
105-
return self.type == "modal" or (
106-
self.type == "home"
107-
and len([b for b in self.blocks if b.type == "input"]) == 0
108-
)
109-
110103
@JsonValidator("home view cannot have submit and close")
111104
def _validate_home_tab_structure(self):
112105
return self.type != "home" or (

0 commit comments

Comments
 (0)