Skip to content

Instantly share code, notes, and snippets.

@goldzulu
Last active April 26, 2023 23:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goldzulu/73402eabe3bad393d61bad4d793afec4 to your computer and use it in GitHub Desktop.
Save goldzulu/73402eabe3bad393d61bad4d793afec4 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"$metadata": {
"uris": {
"jsonLdContext": "https://raw.githubusercontent.com/LastingAsset/claim-schema-vocab/main/json-ld/studentgrade.json-ld"
}
},
"required": [
"@context",
"id",
"type",
"issuanceDate",
"credentialSubject",
"credentialSchema",
"credentialStatus",
"issuer"
],
"properties": {
"@context": {
"type": [
"string",
"array",
"object"
]
},
"id": {
"type": "string"
},
"type": {
"type": [
"string",
"array"
],
"items": {
"type": "string"
}
},
"issuer": {
"type": [
"string",
"object"
],
"format": "uri",
"required": [
"id"
],
"properties": {
"id": {
"type": "string",
"format": "uri"
}
}
},
"issuanceDate": {
"type": "string",
"format": "date-time"
},
"expirationDate": {
"type": "string",
"format": "date-time"
},
"credentialSchema": {
"type": "object",
"required": [
"id",
"type"
],
"properties": {
"id": {
"type": "string",
"format": "uri"
},
"type": {
"type": "string"
}
}
},
"subjectPosition": {
"type": "string",
"enum": [
"none",
"index",
"value"
]
},
"merklizationRootPosition": {
"type": "string",
"enum": [
"none",
"index",
"value"
]
},
"revNonce": {
"type": "integer"
},
"version": {
"type": "integer"
},
"updatable": {
"type": "boolean"
},
"credentialSubject": {
"type": "object",
"required": [
"id",
"module",
"grade"
],
"properties": {
"id": {
"title": "Credential Subject ID",
"type": "string",
"format": "uri"
},
"module": {
"type": "integer"
},
"grade": {
"type": "integer"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment