Skip to content

Commit

Permalink
Merge pull request #8 from transmute-industries/add-ajv-formats
Browse files Browse the repository at this point in the history
add ajv formats
  • Loading branch information
acarnagey authored May 3, 2024
2 parents c99ba22 + e8e0b67 commit 2d5c892
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 1 deletion.
25 changes: 25 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@transmute/cose": "^0.1.1",
"@transmute/vc-jwt-sd": "^0.1.3",
"ajv": "^8.12.0",
"ajv-formats": "^3.0.1",
"jose": "^5.2.0",
"json-pointer": "^0.6.2",
"moment": "^2.30.1",
Expand Down
8 changes: 7 additions & 1 deletion src/cr1/validator/ajv.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
import Ajv from 'ajv/dist/2020'

export const ajv = new Ajv({
import addFormats from 'ajv-formats'

const ajv = new Ajv({
strict: false,
})

addFormats(ajv)

export { ajv }

0 comments on commit 2d5c892

Please sign in to comment.