From a4b556e5aff4bfe23927682964d04a614ac64485 Mon Sep 17 00:00:00 2001
From: Andres Uribe Gonzalez Evaluation
+ Examples for the Success and Failure possible outcomes are provided below. +
++ { + "$id": "https://example.com/schemas/email.json", + "$schema": "https://json-schema.org/draft/2020-12/schema", + "name": "EmailCredential", + "description": "EmailCredential using JsonSchema", + "type": "object", + "properties": { + "credentialSubject": { + "type": "object", + "properties": { + "emailAddress": { + "type": "string", + "format": "email" + } + }, + "required": [ + "emailAddress" + ] + } + } + } ++
+ { + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://www.w3.org/ns/credentials/examples/v2" + ], + "id": "https://example.com/credentials/3732", + "type": ["VerifiableCredential", "EmailCredential"], + "issuer": "https://example.com/issuers/14", + "issuanceDate": "2010-01-01T19:23:24Z", + "credentialSubject": { + "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "emailAddress": "subject@example.com" + }, + "credentialSchema": { + "id": "https://example.com/schemas/email.json", + "type": "JsonSchema", + } + } ++
+ { + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://www.w3.org/ns/credentials/examples/v2" + ], + "id": "https://example.com/credentials/3732", + "type": ["VerifiableCredential", "EmailCredential"], + "issuer": "https://example.com/issuers/14", + "issuanceDate": "2010-01-01T19:23:24Z", + "credentialSubject": { + "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "emailAddress": "not an email" + }, + "credentialSchema": { + "id": "https://example.com/schemas/email.json", + "type": "JsonSchema", + } + } ++
+ Assuming that the implementer does not support [[JSON-SCHEMA-2019-09]], an example of Indeterminate evaluation is provided below. +
++ { + "$id": "https://example.com/schemas/email.json", + "$schema": "https://json-schema.org/draft/2019-09/schema", + "name": "EmailCredential", + "description": "EmailCredential using JsonSchema", + "type": "object", + "properties": { + "credentialSubject": { + "type": "object", + "properties": { + "emailAddress": { + "type": "string", + "format": "email" + } + }, + "required": [ + "emailAddress" + ] + } + } + } ++
+ { + "@context": [ + "https://www.w3.org/ns/credentials/v2", + "https://www.w3.org/ns/credentials/examples/v2" + ], + "id": "https://example.com/credentials/3732", + "type": ["VerifiableCredential", "EmailCredential"], + "issuer": "https://example.com/issuers/14", + "issuanceDate": "2010-01-01T19:23:24Z", + "credentialSubject": { + "id": "did:example:ebfeb1f712ebc6f1c276e12ec21", + "emailAddress": "not an email" + }, + "credentialSchema": { + "id": "https://example.com/schemas/email.json", + "type": "JsonSchema", + } + } +