SCH001 - Schema Not Loaded¶
Description¶
The JSON Schema validator could not load a schema for validation. This typically occurs when the schema file is missing, corrupted, or the schema version is not supported.
Severity¶
Warning
When This Occurs¶
- Schema file not found in the expected location
- Schema version not supported by the validator
- Offline mode without cached schemas
Example¶
{
"@context": ["https://www.w3.org/ns/credentials/v2"],
"type": ["VerifiableCredential", "DigitalProductPassport"],
"credentialSubject": {
"product": { "name": "Test Product" }
}
}
If no schema is available, validation continues but schema-level checks are skipped.
Resolution¶
- Ensure schema files are present:
- Update schema cache:
- Check schema version compatibility:
from dppvalidator import ValidationEngine
engine = ValidationEngine()
print(f"Supported versions: {engine.supported_schema_versions}")