Skip to content

Instantly share code, notes, and snippets.

@DOBEN
Last active August 14, 2023 17:02
Show Gist options
  • Save DOBEN/f789407a51fdca86b7824499c9b8a070 to your computer and use it in GitHub Desktop.
Save DOBEN/f789407a51fdca86b7824499c9b8a070 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"
}
},
"required": [
"degreeType",
"degreeName"
]
}
},
"required": [
"id",
"attributes"
]
}
},
"required": [
"credentialSubject"
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment