Skip to content

Commit

Permalink
chore: formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
KristianKjerstad authored and KristianKjerstad committed Aug 1, 2023
1 parent 5d443f3 commit 0ecdfc0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/common/utils/validators.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,7 @@ def _validate_complex_attribute(
):
if type(attribute) != dict:
raise ValidationException(f"'{attributeDefinition.name}' should be a dict", debug=_get_debug_message(key))
if (
not attribute
or attributeDefinition.attribute_type == BuiltinDataTypes.BINARY.value
):
if not attribute or attributeDefinition.attribute_type == BuiltinDataTypes.BINARY.value:
return
if attributeDefinition.attribute_type == BuiltinDataTypes.OBJECT.value:
validate_entity_against_self(entity=attribute, get_blueprint=get_blueprint, key=key)
Expand Down

0 comments on commit 0ecdfc0

Please sign in to comment.