Clean up mobile app webhooks (#30123)
This commit is contained in:
parent
fb3bb8220b
commit
834929a14e
6 changed files with 356 additions and 341 deletions
|
@ -20,6 +20,9 @@ class RequestDataValidator:
|
|||
|
||||
def __init__(self, schema, allow_empty=False):
|
||||
"""Initialize the decorator."""
|
||||
if isinstance(schema, dict):
|
||||
schema = vol.Schema(schema)
|
||||
|
||||
self._schema = schema
|
||||
self._allow_empty = allow_empty
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue