We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69eb478 commit fe9449aCopy full SHA for fe9449a
cve_bin_tool/vex_manager/validate.py
@@ -194,7 +194,9 @@ def validate_file(
194
# Use traditional jsonschema validation for CSAF and OpenVEX
195
try:
196
schema = self._get_schema(vex_type, version)
197
- if schema: # Only validate if schema was successfully loaded
+ if (
198
+ schema and len(schema) > 0
199
+ ): # Only validate if schema was successfully loaded and not empty
200
jsonschema.validate(instance=raw_data, schema=schema)
201
self.logger.info(f"VEX file passed {vex_type} schema validation")
202
except JsonSchemaValidationError as e:
0 commit comments