Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Hosting credentialSchema #1456

Merged
merged 6 commits into from
Jul 3, 2024
Merged
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
80 changes: 80 additions & 0 deletions site/static/schemas/kccSchema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"credentialSubject": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"countryOfResidence": {
"type": "string",
"pattern": "^[A-Z]{2}$"
},
"tier": {
"type": "string",
"optional": true
EbonyLouis marked this conversation as resolved.
Show resolved Hide resolved
}
},
"required": [
"id",
"countryOfResidence"
]
},
"issuer": {
"type": "string"
},
"issuanceDate": {
"type": "string",
"format": "date-time"
},
"expirationDate": {
"type": "string",
"format": "date-time"
},
"credentialSchema": {
"type": "object",
"properties": {
"id": {
"type": "string",
"format": "uri"
},
"type": {
"type": "string",
"const": "JsonSchema"
}
},
"required": [
"id",
"type"
]
},
"evidence": {
"type": "array",
"items": {
"type": "object",
"properties": {
"kind": {
"type": "string"
},
"checks": {
"type": "array",
"items": {
"type": "string"
}
}
},
"optional": true
},
"optional": true
EbonyLouis marked this conversation as resolved.
Show resolved Hide resolved
}
},
"required": [
"credentialSubject",
"issuer",
"issuanceDate",
"expirationDate",
"credentialSchema"
]
}
Loading