From 1aec8d82fd07ca64a22d10da4c335df7b3c1bd8d Mon Sep 17 00:00:00 2001 From: Jordan A Voss Date: Mon, 7 Oct 2024 10:06:04 -0500 Subject: [PATCH] Update error messages --- stix2validator/v21/shoulds.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stix2validator/v21/shoulds.py b/stix2validator/v21/shoulds.py index 51aa851f..0d2c78c5 100644 --- a/stix2validator/v21/shoulds.py +++ b/stix2validator/v21/shoulds.py @@ -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) @@ -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')