Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update credentialschema to verifiablecredentialschema #174

Merged
merged 1 commit into from
Jul 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 20 additions & 20 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ <h2>Data Model</h2>
<p>
The following sections outline the data models for this document, of which there are two:
<code>JsonSchema2023</code> for usage of a [[JSON-Schema]] directly in a <code>credentialSchema</code>
property, and <code>CredentialSchema2023</code> for usage of a [[JSON-Schema]] represented as a
property, and <code>VerifiableCredentialSchema2023</code> for usage of a [[JSON-Schema]] represented as a
<a>verifiable credential</a>.
</p>
<section>
Expand Down Expand Up @@ -186,7 +186,7 @@ <h3>JsonSchema2023</h3>
</p>
An example of utilizing the VC Data Model's <code>credentialSchema</code>
is provided below:
<pre class="example highlight" title="Example JsonSchema2023">
<pre class="example" title="Example JsonSchema2023">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
Expand All @@ -208,7 +208,7 @@ <h3>JsonSchema2023</h3>
</pre>
</p>
<p>
<pre class="example highlight" title="Example Email JSON Schema">
<pre class="example" title="Example Email JSON Schema">
{
"$id": "https://example.com/schemas/email.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand All @@ -234,13 +234,13 @@ <h3>JsonSchema2023</h3>
</p>
</section>
<section>
<h3>CredentialSchema2023</h3>
<h3>VerifiableCredentialSchema2023</h3>
<p>
This <a href="https://www.w3.org/TR/json-ld/#dfn-term-definition">term definition</a>
is <code>https://www.w3.org/ns/credentials#CredentialSchema2023</code>.
is <code>https://www.w3.org/ns/credentials#VerifiableCredentialSchema2023</code>.
</p>
<p>
<b>CredentialSchema2023</b> is used for the validation of W3C Verifiable Credentials, based
<b>VerifiableCredentialSchema2023</b> is used for the validation of W3C Verifiable Credentials, based
on representing JSON Schema in a <a>verifiable credential</a>. The version of [[JSON-Schema]]
can be any version noted in the section on <a href="#json-schema-specifications">JSON Schema Specifications</a>.
</p>
Expand All @@ -261,14 +261,14 @@ <h3>CredentialSchema2023</h3>
</tr>
<tr>
<td>type</td>
<td>The <code>type</code> property MUST be CredentialSchema2023</td>
<td>The <code>type</code> property MUST be VerifiableCredentialSchema2023</td>
</tr>
</tbody>
</table>
</p>
An example of utilizing the VC Data Model's <code>credentialSchema</code>
is provided below:
<pre class="example highlight" title="Example CredentialSchema2023">
<pre class="example" title="Example VerifiableCredentialSchema2023">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
Expand All @@ -284,27 +284,27 @@ <h3>CredentialSchema2023</h3>
},
"credentialSchema": {
"id": "https://example.com/credentials/3734",
"type": "CredentialSchema2023"
"type": "VerifiableCredentialSchema2023"
}
}
</pre>
</p>
<p>
<pre class="example highlight" title="Example Email Credential Schema">
<pre class="example" title="Example Email Credential Schema">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
"https://www.w3.org/ns/credentials/examples/v2"
],
"id": "https://example.com/credentials/3734",
"type": ["VerifiableCredential", "CredentialSchema2023"],
"type": ["VerifiableCredential", "VerifiableCredentialSchema2023"],
"issuer": "https://example.com/issuers/14",
"issuanceDate": "2010-01-01T19:23:24Z",
"credentialSubject": {
"$id": "https://example.com/schemas/email-credential-schema.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"name": "EmailCredential",
"description": "EmailCredential using CredentialSchema2023",
"description": "EmailCredential using VerifiableCredentialSchema2023",
"type": "object",
"properties": {
"credentialSubject": {
Expand Down Expand Up @@ -429,7 +429,7 @@ <h2>Processing</h2>
<h3>Integrity Validation</h3>
<p>
Credential Schemas MAY be packaged as <a>verifiable credentials</a> as defined
by usage of the <a href="#credentialschema2023">CredentialSchema2023</a> type.
by usage of the <a href="#verifiablecredentialschema2023">VerifiableCredentialSchema2023</a> type.
The credential containing a <a>credential schema</a> may include a proof, either
embedded according to [[VC-DATA-INTEGRITY]] or packaged as a [[VC-JWT]].
</p>
Expand Down Expand Up @@ -472,7 +472,7 @@ <h3>Validation of Specific Properties in a Credential</h3>
has an <code>validUntil</code> property and includes <code>evidence</code>.
</p>
<p>
<pre class="example highlight" title="ValidUntil and Evidence Credential Schema">
<pre class="example" title="ValidUntil and Evidence Credential Schema">
{
"$id": "validuntil-and-evidence-schema",
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down Expand Up @@ -509,7 +509,7 @@ <h3>Additional Properties</h3>
is to avoid setting <code>additionalProperties</code> to <i>false</i>.
</p>
<p>
<pre class="example highlight" title="Example Name Credential Schema">
<pre class="example" title="Example Name Credential Schema">
{
"$id": "name-schema",
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down Expand Up @@ -585,7 +585,7 @@ <h3>Multiple Schemas</h3>
<code>allOf</code> is provided below, combining schemas for a <a>verifiable credential</a>,
name, and email address:

<pre class="example highlight" title="Multiple Schema Credential Schema Example">
<pre class="example" title="Multiple Schema Credential Schema Example">
{
"allOf": [
{
Expand Down Expand Up @@ -653,7 +653,7 @@ <h3>Multiple Schemas</h3>
The example above is used to validate every property in the following
<a>verifiable credential</a>:

<pre class="example highlight" title="Multiple Schema Verifiable Credential Example">
<pre class="example" title="Multiple Schema Verifiable Credential Example">
{
"@context": ["https://www.w3.org/ns/credentials/v2"],
"id": "4995c86c-851f-43a6-9dd2-03dc891091fd",
Expand All @@ -667,7 +667,7 @@ <h3>Multiple Schemas</h3>
},
"credentialSchema": {
"id": "multiple-credential-schema-test",
"type": "CredentialSchema2023"
"type": "VerifiableCredentialSchema2023"
},
"proof": { ... }
}
Expand Down Expand Up @@ -702,7 +702,7 @@ <h3>Relationship to Verifiable Credential Type Property</h3>
</p>
<p>
The example below illustrates this for <code>EmailCredential</code>:
<pre class="example highlight" title="Verifiable Credential with Schema Type">
<pre class="example" title="Verifiable Credential with Schema Type">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
Expand All @@ -724,7 +724,7 @@ <h3>Relationship to Verifiable Credential Type Property</h3>
</pre>
</p>
<p>
<pre class="example highlight" title="Schema with Matching Type Name">
<pre class="example" title="Schema with Matching Type Name">
{
"$id": "https://example.com/schemas/email.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
Expand Down
2 changes: 1 addition & 1 deletion terms.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<dd>
An assertion made about a <a>subject</a>.
</dd>
<dt><dfn data-lt="credential schema|credential schemas">credential schema</dfn></dt>
<dt><dfn data-lt="verifiable credential schema|verifiable credential schemas|credential schema|credential schemas">verifiable credential schema</dfn></dt>
<dd>
The data model that this specification defines.
</dd>
Expand Down