Skip to content

Commit

Permalink
Update features/steps/thens/relations.py
Browse files Browse the repository at this point in the history
Co-authored-by: Geert Hesselink <54070862+Ghesselink@users.noreply.github.com>
  • Loading branch information
aothms and Ghesselink committed May 11, 2024
1 parent 1838f6f commit d61f836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion features/steps/thens/relations.py
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ def schema_has_declaration_name(s):
correct = functools.reduce(operator.add, (correct, correct_type1, correct_type2))

if not any(correct):
yield ValidationOutcome(inst=inst, expected={"oneOf": accepted_values['applicable_entities']}, observed = obj, severity=OutcomeSeverity.ERROR)
yield ValidationOutcome(inst=inst, expected=accepted_values['applicable_entities'], observed = obj, severity=OutcomeSeverity.ERROR)
else:
allowed_predefined_types_for_matching_entity = [ptype.upper() if ptype else None for entity, ptype in accepted_values['applicable_entities_with_predefined_types'] if entity.lower() in correct]
if None not in allowed_predefined_types_for_matching_entity:
Expand Down

0 comments on commit d61f836

Please sign in to comment.