Skip to content

Commit

Permalink
Merge pull request #208 from clenk/debug-msg-extension-schema
Browse files Browse the repository at this point in the history
Add debug msg for which schema validates extension
  • Loading branch information
ejratl authored Feb 8, 2023
2 parents 0abc3cd + 899ea94 commit 1e1320d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions stix2validator/validator.py
Original file line number Diff line number Diff line change
Expand Up @@ -645,6 +645,9 @@ def _get_error_generator(name, obj, schema_dir=None, version=DEFAULT_VER, defaul
raise SchemaInvalidError("Cannot locate a schema for the object's "
"type, nor the base schema ({}.json).".format(default))

if 'extension-definition--' in name and schema_path:
output.info("Validating {} against {}".format(name, schema_path))

type = obj['type']
if type == 'observed-data' and schema_dir is None:
# Validate against schemas for specific observed data object types later.
Expand Down

0 comments on commit 1e1320d

Please sign in to comment.