Skip to content

Instantly share code, notes, and snippets.

@DOBEN
Created August 23, 2023 11:39
Show Gist options
  • Save DOBEN/96ce4a28510c747c709fbc61b93503a9 to your computer and use it in GitHub Desktop.
Save DOBEN/96ce4a28510c747c709fbc61b93503a9 to your computer and use it in GitHub Desktop.
{
"$id": "https://example-university.com/certificates/JsonSchema2023-education-certificate.json",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"name": "Education certificate",
"description": "Simple representation of an education certificate.",
"type": "object",
"properties": {
"credentialSubject": {
"type": "object",
"properties": {
"id": {
"title": "Credential subject id",
"type": "string",
"description": "Credential subject identifier"
},
"attributes": {
"title": "Attributes",
"description": "Credential attributes",
"type": "object",
"properties": {
"degreeType": {
"title": "Degree type",
"type": "string",
"description": "Degree type"
},
"degreeName": {
"title": "Degree name",
"type": "string",
"description": "Degree name"
},
"degreeName2": {
"title": "Degree name",
"type": "string",
"description": "Degree name"
},
"graduationDate": {
"title": "Graduation date",
"type": "string",
"format": "date-time",
"description": "Graduation date"
}
},
"required": [
"degreeType",
"degreeName",
"degreeName2",
"graduationDate"
]
}
},
"required": [
"id",
"attributes"
]
}
},
"required": [
"credentialSubject"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment