Clean up mobile app webhooks (#30123)
This commit is contained in:
1 parent
fb3bb8220b
commit
834929a14e
6 files changed
+356
-341
No files matched your search
@@ -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
|
||||
|
||||
|
||||
Reference in new issue
Block a user