Last active
April 26, 2023 23:05
-
-
Save goldzulu/73402eabe3bad393d61bad4d793afec4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$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