Skip to content

Commit

Permalink
guard against missing field in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
HenrikDK committed Nov 9, 2024
1 parent 5c674db commit 844c62e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion yamale/schema/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def _internal_validate(internal_data):
return errors

def _get_include_validators_for_key(self, validator, internal_data):
if len(validator.key) == 0:
if len(validator.key) == 0 or validator.key not in internal_data:
return validator.validators

field_value = internal_data[validator.key]
Expand Down

0 comments on commit 844c62e

Please sign in to comment.