Skip to content

Commit

Permalink
Merge branch 'main' into allow-lint-flags
Browse files Browse the repository at this point in the history
  • Loading branch information
dkolbly authored May 29, 2024
2 parents 2c233c2 + d6637d5 commit ee44669
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions ocsf_validator/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,8 @@ def __init__(
else:
trail_str = ".".join(trail)

if cls is None:
cls_str = ""
else:
cls_str = cls.__name__ + "."

super().__init__(
f"Missing required key `{cls_str}{key}` at `{trail_str}` in {file}"
f"Missing required key `{key}` at `{trail_str}` in {file}. Make sure required fields in this file and any supporting files such as dictionaries or includes are populated."
)


Expand All @@ -113,13 +108,8 @@ def __init__(
else:
trail_str = ".".join(trail)

if cls is None:
cls_str = ""
else:
cls_str = cls.__name__

super().__init__(
f"Unrecognized key `{key}` of `{cls_str}` at `{trail_str}` in {file}"
f"Unrecognized key `{key}` at `{trail_str}` in {file}. Make sure fields in this file and any supporting files such as dictionaries or includes are valid."
)


Expand Down

0 comments on commit ee44669

Please sign in to comment.