Skip to content

Commit 994f1f7

Browse files
committed
Revert "see if this works"
This reverts commit 89d6cdc.
1 parent 89d6cdc commit 994f1f7

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

st2common/st2common/util/schema/__init__.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -419,16 +419,9 @@ def validate(
419419
:type use_default: ``bool``
420420
"""
421421
instance = fast_deepcopy_dict(instance)
422-
schema_type = None
423-
if isinstance(schema, dict):
424-
schema_type = schema.get("type", None)
425-
422+
schema_type = schema.get("type", None)
426423
instance_is_dict = isinstance(instance, dict)
427424

428-
if isinstance(schema, dict) and ("type" in schema or "$schema" in schema):
429-
jsonschema.validate(instance=instance, schema=schema, *args, **kwargs)
430-
return instance
431-
432425
if use_default and allow_default_none:
433426
schema = modify_schema_allow_default_none(schema=schema)
434427

0 commit comments

Comments
 (0)