Skip to content

Commit

Permalink
Update error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan A Voss committed Oct 7, 2024
1 parent 963af14 commit 1aec8d8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions stix2validator/v21/shoulds.py
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ def check_vocab(instance, vocab, code):

if not is_in:
vocab_name = vocab.replace('_', '-').lower()
yield JSONError("%s contains a value not in the %s-ov "
yield JSONError("The value contained in %s is permitted, but is not in the %s-ov vocabulary. "
"vocabulary." % (prop, vocab_name),
instance['id'], code)

Expand Down Expand Up @@ -531,7 +531,7 @@ def relationships_strict(instance):
return

if r_source not in enums.RELATIONSHIPS:
return JSONError("'%s' is not a suggested relationship source object "
return JSONError("'%s' is permitted, but not a suggested relationship type for '%s' objects "
"for the '%s' relationship." % (r_source, r_type),
instance['id'], 'relationship-types')

Expand Down

0 comments on commit 1aec8d8

Please sign in to comment.