{"$schema":"https://json-schema.org/draft/2020-12/schema","title":"PM2 Credential","description":"Schema of a PM2 Verifiable Credential","type":"object","allOf":[{"$ref":"https://api-pilot.ebsi.eu/trusted-schemas-registry/v3/schemas/0x6dd1a7ef4d7706a3c2b3ee1c5ae1e9d96ec777016f95c2768836c01818cf5729"},{"properties":{"type":{"description":"Defines the Verifiable Credential type.","type":"array","contains":{"type":"string","const":"PM2Credential"}},"credentialSubject":{"description":"Defines additional properties on credentialSubject to describe IDs that do not have a substantial level of assurance.","type":"object","properties":{"id":{"description":"Defines a unique identifier of the credential subject","type":"string"},"givenName":{"description":"Name strings that are the part of a person's name that is not their surname (see RFC4519).","type":"string"},"familyName":{"description":"Name strings that are a person's surname (see RFC4519).","type":"string"},"emailAddress":{"description":"Email address of the user.","type":"string","format":"email"},"courses":{"description":"Courses in this credential","type":"array","items":{"type":"object","properties":{"name":{"description":"Name of course","type":"string"}},"required":["name"]}},"credentialDescription":{"description":"Description for this credential","type":"string"},"credentialId":{"description":"Id for this credential","type":"string"}},"required":["id","givenName","familyName","emailAddress","courses","credentialDescription","credentialId"]}}}]}