@cef-ebsi/vcdm1.1-dc4eu-higher-education-proof-of-enrolment
v1.0.0-next.1
Published
European Higher Education Proof of Enrolment (VCDM 1.1)
Downloads
8
Keywords
Readme
@cef-ebsi/vcdm1.1-dc4eu-higher-education-proof-of-enrolment
European Higher Education Proof of Enrolment
Profile schema extending EDC-W3C-VC for verifiable credentials proving enrolment in higher education institutions.
The schema is published to the Trusted Schemas Registry with the IDs:
0xb3e10ef92e1b6d0cc516cd1f0b8d53deefae1460d0cc0b132449390a9c904013(hexadecimal)zD7B2CsB5GLdgow8NtW2A8cUNXmVNBZiTVCjjjZFfMkSW(multibase base58btc)
Table of Contents
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "European Higher Education Proof of Enrolment",
"description": "Profile schema extending EDC-W3C-VC for verifiable credentials proving enrolment in higher education institutions.",
"type": "object",
"allOf": [
{
"$ref": "./node_modules/@cef-ebsi/vcdm1.1-europass-edc-schema/schema.json"
},
{
"type": "object",
"properties": {
"type": {
"type": "array",
"items": {
"type": "string"
},
"const": [
"VerifiableCredential",
"VerifiableAttestation",
"EuropeanDigitalCredential",
"EuropeanHigherEducationProofOfEnrolment"
]
},
"credentialSubject": {
"type": "object",
"required": [
"id",
"type",
"dateOfBirth",
"familyName",
"givenName",
"hasClaim"
],
"properties": {
"hasClaim": {
"type": "array",
"minItems": 1,
"items": {
"type": "object",
"required": ["type", "title", "awardedBy", "specifiedBy"],
"properties": {
"type": {
"type": "string",
"const": "LearningAchievement"
},
"title": {
"type": "object"
},
"awardedBy": {
"type": "object",
"required": ["awardingBody", "location"],
"properties": {
"awardingBody": {
"type": "object"
},
"location": {
"type": "object"
}
}
},
"specifiedBy": {
"type": "object",
"required": ["creditPoint", "duration"],
"properties": {
"creditPoint": {
"type": "array",
"minItems": 1
},
"duration": {
"type": "string"
}
}
},
"participatedIn": {
"type": "object",
"required": ["temporal"],
"properties": {
"temporal": {
"type": "object",
"required": ["startDate"],
"properties": {
"startDate": {
"type": "string",
"format": "date"
}
}
}
}
}
}
}
}
}
},
"displayParameter": {
"type": "object"
},
"credentialProfiles": {
"type": "array",
"items": {
"type": "object"
}
}
}
}
]
}Installation
# with npm
npm add @cef-ebsi/[email protected]
# with Yarn
yarn add @cef-ebsi/[email protected]
# with pnpm
pnpm add @cef-ebsi/[email protected]Usage
The package exports the schema and its metadata as JavaScript objects:
import {
schema,
metadata,
} from "@cef-ebsi/vcdm1.1-dc4eu-higher-education-proof-of-enrolment";
// you can now use the schema and metadataIn addition, the package exports a TypeScript type corresponding to the schema:
import type { EuropeanHigherEducationProofOfEnrolment } from "@cef-ebsi/vcdm1.1-dc4eu-higher-education-proof-of-enrolment";License
Copyright (C) 2024 European Union
This program is free software: you can redistribute it and/or modify it under the terms of the EUROPEAN UNION PUBLIC LICENCE v. 1.2 as published by the European Union.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the EUROPEAN UNION PUBLIC LICENCE v. 1.2 for further details.
You should have received a copy of the EUROPEAN UNION PUBLIC LICENCE v. 1.2. along with this program. If not, see https://joinup.ec.europa.eu/collection/eupl/eupl-text-eupl-12.
