Skip to content

Commit

Permalink
fix: pass hasher to cvVerifySchema
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderPostma committed Nov 26, 2024
1 parent 7d10b97 commit a12b845
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,11 @@ export class CredentialValidation implements IAgentPlugin {
private async cvVerifyCredential(args: VerifyCredentialArgs, context: RequiredContext): Promise<VerificationResult> {
const { credential, hasher, policies } = args
// defaulting the schema validation to when_present
const schemaResult = await this.cvVerifySchema({ credential, validationPolicy: policies?.schemaValidation ?? SchemaValidation.WHEN_PRESENT })
const schemaResult = await this.cvVerifySchema({
credential,
validationPolicy: policies?.schemaValidation ?? SchemaValidation.WHEN_PRESENT,
hasher,
})
if (!schemaResult.result) {
return schemaResult
}
Expand Down

0 comments on commit a12b845

Please sign in to comment.