From b0a1bc302a1e2529f5a150bc805dc1318521d419 Mon Sep 17 00:00:00 2001
From: gabe
This term definition
- is
JsonSchema2023 is for the validation of W3C Verifiable Credentials, based
@@ -238,7 +238,7 @@
This term definition
- is
VerifiableCredentialSchema2023 is used for the validation of W3C Verifiable Credentials, based
From c3e402e8a7f7320efc54fa1f66452d952b88bdef Mon Sep 17 00:00:00 2001
From: gabe
- JsonSchema2023 is for the validation of W3C Verifiable Credentials, based
- on JSON Schema. The version of [[JSON-Schema]] can be any version noted in the section
+ JsonSchema2023 is used for the validation of W3C Verifiable Credentials using
+ JSON Schema. When dereferencing the
+ The specification version of [[JSON-Schema]] can be any version noted in the section
on JSON Schema Specifications.
@@ -209,6 +213,11 @@ Data Model
JsonSchema2023
https://www.w3.org/ns/credentials#JsonSchema2023
.
+ is https://www.w3.org/TR/vc-json-schema/#JsonSchema2023
.
JsonSchema2023
VerifiableCredentialSchema2023
https://www.w3.org/ns/credentials#VerifiableCredentialSchema2023
.
+ is https://www.w3.org/TR/vc-json-schema/#VerifiableCredentialSchema2023
.
JsonSchema2023
is https://www.w3.org/TR/vc-json-schema/#JsonSchema2023
.
id
property associated with the
+ JsonSchema2023
type
value the result is a valid JSON
+ Schema document according to its specification version.
+ JsonSchema2023
+
+ Upon dereferencing the value of the id
https://example.com/schemas/email.json
,
+ a process also be referred to as schema resolution, the following JSON Schema
+ document is returned:
+
{ "$id": "https://example.com/schemas/email.json", @@ -241,9 +250,16 @@VerifiableCredentialSchema2023
ishttps://www.w3.org/TR/vc-json-schema/#VerifiableCredentialSchema2023
.- VerifiableCredentialSchema2023 is used for the validation of W3C Verifiable Credentials, based - on representing JSON Schema in a verifiable credential. The version of [[JSON-Schema]] - can be any version noted in the section on JSON Schema Specifications. + VerifiableCredentialSchema2023 is used for the validation of W3C Verifiable Credentials using + JSON Schema, where the JSON Schema is contained with a verifiable credential. + When dereferencing the
id
property associated with the +VerifiableCredentialSchema2023
type
value the result is a valid + verifiable credential. The resulting verifiable credential MUST NOT + have acredentialSubject
property and it MUST have ajsonSchema
+ property containing a valid JSON Schema, as exemplified below. ++ The specification version of [[JSON-Schema]] can be any version noted in the section + on JSON Schema Specifications.
type | -The type property MUST be VerifiableCredentialSchema2023 |
+ The type property MUST be JsonSchemaCredential2023 |
credentialSchema
is provided below:
- +{ "@context": [ "https://www.w3.org/ns/credentials/v2", @@ -301,7 +308,7 @@@@ -319,33 +326,37 @@VerifiableCredentialSchema2023
}, "credentialSchema": { "id": "https://example.com/credentials/3734", - "type": "VerifiableCredentialSchema2023" + "type": "JsonSchemaCredential2023" } }VerifiableCredentialSchema2023
"https://www.w3.org/ns/credentials/examples/v2" ], "id": "https://example.com/credentials/3734", - "type": ["VerifiableCredential", "VerifiableCredentialSchema2023"], + "type": ["VerifiableCredential", "JsonSchemaCredential2023"], "issuer": "https://example.com/issuers/14", "issuanceDate": "2010-01-01T19:23:24Z", - "jsonSchema": { - "$id": "https://example.com/schemas/email-credential-schema.json", - "$schema": "https://json-schema.org/draft/2020-12/schema", - "name": "EmailCredential", - "description": "EmailCredential using VerifiableCredentialSchema2023", - "type": "object", - "properties": { - "credentialSubject": { - "type": "object", - "properties": { - "emailAddress": { - "type": "string", - "format": "email" - } - }, - "required": ["emailAddress"] - } + "credentialSubject": { + "id": "https://example.com/schemas/email-credential-schema.json", + "type": "JsonSchema2023", + "jsonSchema": { + "$id": "https://example.com/schemas/email-credential-schema.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "name": "EmailCredential", + "description": "EmailCredential using JsonSchemaCredential2023", + "type": "object", + "properties": { + "credentialSubject": { + "type": "object", + "properties": { + "emailAddress": { + "type": "string", + "format": "email" + } + }, + "required": ["emailAddress"] + } + } } } }
- Add language about CredentialSchema2023 credentials having a credentialSchema property + Add language about JsonSchemaCredential2023 credentials having a credentialSchema property and the risks of nesting.
@@ -465,7 +476,7 @@Credential Schemas MAY be packaged as verifiable credentials as defined - by usage of the VerifiableCredentialSchema2023 type. + by usage of the JsonSchemaCredential2023 type. The credential containing a credential schema may include a proof, either embedded according to [[VC-DATA-INTEGRITY]] or packaged as a [[VC-JWT]].
@@ -735,7 +746,7 @@JsonSchemaCredential2023
type
value the result is a valid
verifiable credential. The resulting verifiable credential's
credentialSubject
property MUST contain a two properties:
- type
– the value of which MUST be JsonSchema2023
jsonSchema
– an object which contains a valid JSON Schematype
– the value of which MUST be JsonSchema2023
jsonSchema
– an object which contains a valid JSON Schema
The term definition
From 21ff4f16f9f8b7d3dd76a93c6cee5aa637aeadb3 Mon Sep 17 00:00:00 2001
From: Gabe <7622243+decentralgabe@users.noreply.github.com>
Date: Wed, 26 Jul 2023 10:40:16 -0500
Subject: [PATCH 7/7] Update index.html
Co-authored-by: Manu Sporny JsonSchemaCredential2023
"https://www.w3.org/ns/credentials/examples/v2"
],
"id": "https://example.com/credentials/3733",
- "type": ["VerifiableCredential", "JsonSchemaCredential2023", "EmailCredential"],
+ "type": ["VerifiableCredential", "ExampleEmailCredential"],
"issuer": "https://example.com/issuers/14",
"issuanceDate": "2010-01-01T19:23:24Z",
"credentialSubject": {