Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 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
1 change: 1 addition & 0 deletions packages/w3c-context/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ The package includes the following pre-cached contexts:
- `https://trustvc.io/context/render-method-context.json` - Render Methods
- `https://trustvc.io/context/attachments-context.json` - Attachments
- `https://trustvc.io/context/qrcode-context.json` - QR Code
- `https://trustvc.io/context/opencerts-context.json` - OpenCerts Certificate
- `https://trustvc.io/context/bill-of-lading.json` - Bill of Lading
- `https://trustvc.io/context/bill-of-lading-carrier.json` - Bill of Lading Carrier
- `https://trustvc.io/context/coo.json` - Certificate of Origin
Expand Down
29 changes: 29 additions & 0 deletions packages/w3c-context/src/context/opencerts-context.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"@context": {
"@version": 1.1,
"@protected": true,
"OpenCertsCertificate": "https://schema.opencerts.io/#OpenCertsCertificate",
"name": "https://schema.org/name",
"description": "https://schema.org/description",
"issuedOn": "https://schema.org/dateIssued",
"admissionDate": "https://schema.opencerts.io/#admissionDate",
"graduationDate": "https://schema.opencerts.io/#graduationDate",
"recipient": "https://schema.opencerts.io/#recipient",
"nric": "https://schema.opencerts.io/#nric",
"course": "https://schema.org/course",
"transcript": "https://schema.opencerts.io/#transcript",
"grade": "https://schema.org/grade",
"courseCredit": "https://schema.opencerts.io/#courseCredit",
"courseCode": "https://schema.opencerts.io/#courseCode",
"examinationDate": "https://schema.opencerts.io/#examinationDate",
"semester": "https://schema.opencerts.io/#semester",
"additionalData": "https://schema.opencerts.io/#additionalData",
"merit": "https://schema.opencerts.io/#merit",
"studentId": "https://schema.opencerts.io/#studentId",
"transcriptId": "https://schema.opencerts.io/#transcriptId",
"certSignatories": "https://schema.opencerts.io/#certSignatories",
"signature": "https://schema.opencerts.io/#signature",
"position": "https://schema.org/jobTitle",
"organisation": "https://schema.org/organization"
}
}
3 changes: 3 additions & 0 deletions packages/w3c-context/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import jwsV1 from '../context/jws-2020-v1.json';
import multikeyV1 from '../context/multikey-v1.json';
import promissoryNoteContext from '../context/promissory-note.json';
import qrCodeContext from '../context/qrcode-context.json';
import opencertsContext from '../context/opencerts-context.json';
import renderContext from '../context/render-method-context.json';
import renderContextV2 from '../context/render-method-context-v2.json';
import statusList2021V1 from '../context/status-list-2021-v1.json';
Expand All @@ -38,6 +39,7 @@ export const RENDER_CONTEXT_URL = 'https://trustvc.io/context/render-method-cont
export const RENDER_CONTEXT_V2_URL = 'https://trustvc.io/context/render-method-context-v2.json';
export const ATTACHMENTS_CONTEXT_URL = 'https://trustvc.io/context/attachments-context.json';
export const QRCODE_CONTEXT_URL = 'https://trustvc.io/context/qrcode-context.json';
export const OPENCERTS_CONTEXT_URL = 'https://trustvc.io/context/opencerts-context.json';

export const BOL_CONTEXT_URL = 'https://trustvc.io/context/bill-of-lading.json';
export const BOLC_CONTEXT_URL = 'https://trustvc.io/context/bill-of-lading-carrier.json';
Expand Down Expand Up @@ -85,6 +87,7 @@ export const templateContexts: { [key: string]: Document } = {
[INVOICE_CONTEXT_URL]: invoiceContext,
[PROMISSORY_NOTE_CONTEXT_URL]: promissoryNoteContext,
[WAREHOUSE_RECEIPT_CONTEXT_URL]: warehouseReceiptContext,
[OPENCERTS_CONTEXT_URL]: opencertsContext,
};

export const CredentialContextVersion = {
Expand Down
Loading