diff --git a/utils/sunbird-RC/schema/TrainingCertificate.json b/utils/sunbird-RC/schema/TrainingCertificate.json new file mode 100644 index 0000000000000000000000000000000000000000..9e92ecd653c4c5333cd65dcb18ef413b6703931d --- /dev/null +++ b/utils/sunbird-RC/schema/TrainingCertificate.json @@ -0,0 +1,77 @@ +{ + "$schema": "http://json-schema.org/draft-07/schema", + "type": "object", + "properties": { + "TrainingCertificate": { + "$ref": "#/definitions/TrainingCertificate" + } + }, + "required": [ + "TrainingCertificate" + ], + "title": "TrainingCertificate", + "definitions": { + "TrainingCertificate": { + "$id": "#/properties/TrainingCertificate", + "type": "object", + "title": "The TrainingCertificate Schema", + "required": [ + "name", + "contact" + ], + "properties": { + "name": { + "type": "string" + }, + "trainingTitle": { + "type": "string" + }, + "contact": { + "type": "string" + }, + "date": { + "type": "string", + "format": "date" + }, + "note": { + "type": "string" + } + } + } + }, + "_osConfig": { + "uniqueIndexFields": [ + "contact" + ], + "ownershipAttributes": [ + { + "mobile": "/contact", + "userId": "/contact", + "email": "/contact" + } + ], + "roles": [ + "admin" + ], + "inviteRoles": [ + "anonymous" + ], + "enableLogin": false, + "credentialTemplate": { + "@context": [ + "https://www.w3.org/2018/credentials/v1", + "https://gist.githubusercontent.com/dileepbapat/eb932596a70f75016411cc871113a789/raw/498e5af1d94784f114b32c1ab827f951a8a24def/skill" + ], + "type": [ + "VerifiableCredential" + ], + "issuanceDate": "2021-08-27T10:57:57.237Z", + "credentialSubject": { + "type": "Person", + "name": "{{name}}", + "trainedOn": "{{trainingTitle}}" + }, + "issuer": "did:web:sunbirdrc.dev/vc/skill" + } + } +} \ No newline at end of file