{
	"$schema": "http://json-schema.org/draft-07/schema#",
	"title": "Blockcerts Credential Subject schema",
	"description": "Defining the properties as they would be natively understood by Blockcerts Verifier. This is purely informational and implementers should feel free to implement `credentialSubject` as fits their needs.",
	"type": "object",
	"definitions": {
		"Claim": {
			"$ref": "https://w3id.org/blockcerts/schema/3.0/claimSchema.json",
			"description": "This is the explicit claim bound to the credentialSubject"
		}
	},
	"properties": {
		"type": {
			"description": "Allows to define the type of credentialSubject.",
			"oneOf": [
				{
					"type": "string"
				},
				{
					"type": "array",
					"items": {
						"type": "string"
					}
				}
			],
			"examples": ["Recipient", "Operator", "Machine"]
		},
		"name": {
			"type": "string",
			"description": "Name of the credential subject."
		},
		"publicKey": {
			"type": "string",
			"description": "Public key of the recipient. Could be a blockchain address, or a public key used to certify the recipient is the recipient."
		},
		"id": {
			"type": "string",
			"description": "A uuid or a DID."
		},
		"claim": {
			"description": "Define the claim(s) associated with the credentialSubject",
			"oneOf": [
				{
					"type": "object",
					"$ref": "#/definitions/Claim"
				},
				{
					"type": "array",
					"items": {
						"type": "object",
						"$ref": "#/definitions/Claim"
					}
				}
			]
		}
	},
	"required": []
}
