This reference documents the schema verification policy for the verifier service. The schema policy validates that credential content conforms to defined schemas, ensuring data integrity and structural correctness.
The schema verification policy validates the content of verifiable credentials against defined schemas to ensure the credential data adheres to expected structure and data types. This validation ensures credentials contain properly formatted data and helps maintain interoperability between different systems.
The schema verification policy supports credential schema validation across multiple standards:
Standard | Organization | Specification | Schema Format | Validation Aspect |
---|---|---|---|---|
JSON Schema | IETF | JSON Schema | JSON Schema | Provides underlying schema validation technology for credential data |
JSON-LD Context Validation | W3C | JSON-LD 1.1 | JSON-LD Context | Validates against semantic data models defined in JSON-LD contexts |
SD-JWT Verifiable Credential | IETF | SD-JWT Draft | JWT Claims | Validates JWT and SD-JWT claims against defined schemas |
Verifiable Credentials JSON Schema | W3C | VC JSON Schema | JSON Schema | Validates credential claims against standard JSON Schema |
The verifier supports the following credential schema validation implementations:
Schema Format | Description | Specification | Best For |
---|---|---|---|
W3C Verifiable Credential Schema | Schema validation for W3C VCs | W3C Recommendation | W3C VC validation using JSON Schema or JSON-LD Context |
IETF Digital Credential Schema | Schema validation for IETF credentials | IETF Draft | SD-JWT and JWT credential validation |
When verifying against schemas, the policy follows these steps:
The schema policy integrates with schema registry services to:
The schema policy returns specific errors for various validation failures:
Error Type | Description | Typical Cause |
---|---|---|
Schema Not Found | Cannot locate schema for validation | Missing or invalid schema reference |
Schema Resolution Error | Error retrieving schema from URI | Network issues or invalid schema URI |
Validation Error | Credential fails to validate against schema | Malformed credential data |
Invalid Schema | Schema definition is invalid | Poorly structured schema |
Unsupported Schema Type | Schema format not supported | Schema uses unsupported validation mechanism |
The schema verification policy offers various configuration options that control its behavior, including:
For detailed configuration options, parameters, and default values, see the Verifier Configuration Reference.