Skip to content

Commit

Permalink
change invalidation message when non-matching / not allowed elements …
Browse files Browse the repository at this point in the history
…are found
  • Loading branch information
SteffRhes committed Dec 18, 2024
1 parent 5bc3d56 commit 641c238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion veld_spec.py
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,7 @@ def go_to_target(obj_value, target: Node, path):
other_elements_allowed = True
if len(obj_to_validate) != 0 and not other_elements_allowed:
unmatched_keys = ",".join(k for k in obj_to_validate.keys())
return (False, f"elements not matching anything at: {path + '/' + unmatched_keys}")
return (False, f"elements not allowed: {path + '/' + unmatched_keys}")
return (True, None)

def handle_node_mapping(obj_to_validate, node: NodeMapping, path):
Expand Down

0 comments on commit 641c238

Please sign in to comment.