Skip to content

Commit

Permalink
add more metadata to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OR13 committed Jul 8, 2024
1 parent 9a41eaf commit 3e78758
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/json-schema-tests/json-schema-tests.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ credentialSubject:
subtype: Bachelor of Science and Arts
`),
});

// $schema: https://json-schema.org/draft/2020-12/schema
// version: 1.0.0
const validator = await transmute.validator({
resolver: {
resolve: async ({ id, type, content }) => {
Expand All @@ -91,6 +94,7 @@ credentialSubject:
{
"$id": "${baseURL}/schemas/product-passport",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"version": "1.0.0",
"title": "Example JSON Schema",
"description": "This is a test schema",
"type": "object",
Expand Down

0 comments on commit 3e78758

Please sign in to comment.