validateSchema

fun validateSchema(schemaId: String)

Enable schema validation.

Validates the credential against a JSON Schema or SHACL shape.

Example:

trustWeave.verify {
credential(credential)
validateSchema("https://example.com/schemas/degree.json")
}

Parameters

schemaId

The schema IRI to validate against