Skip to content

Commit

Permalink
default to latest json schema version
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Apr 24, 2024
1 parent 7e2205c commit 163fa5a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions src/cr1/validator/ajv.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Ajv from 'ajv/dist/2020'

export const ajv = new Ajv({
strict: false,
})
5 changes: 1 addition & 4 deletions src/cr1/validator/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import Ajv from 'ajv'

import {
RequestValidator,
Expand All @@ -19,9 +18,7 @@ import { bs } from '../../cr1/status-list'

import { conformance } from './w3c'

const ajv = new Ajv({
strict: false,
})
import { ajv } from "./ajv"

export const validator = ({ resolver }: RequestValidator) => {
return {
Expand Down
1 change: 1 addition & 0 deletions test/jwt-product-passports/integration.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ credentialSubject:
content: vc.text.encoder.encode(`
{
"$id": "${baseURL}/schemas/product-passport",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "Example JSON Schema",
"description": "This is a test schema",
"type": "object",
Expand Down

0 comments on commit 163fa5a

Please sign in to comment.