diff --git a/src/com/openattestation/4.0/alpha-schema.json b/src/com/openattestation/4.0/alpha-schema.json index 73189a5..920ad9d 100644 --- a/src/com/openattestation/4.0/alpha-schema.json +++ b/src/com/openattestation/4.0/alpha-schema.json @@ -76,6 +76,7 @@ "required": ["id", "name", "identityProof"] }, "credentialStatus": { + "type": "object", "oneOf": [ { "type": "object", @@ -88,7 +89,8 @@ "enum": ["NONE"] } }, - "required": ["credentialStatusType"] + "required": ["credentialStatusType"], + "additionalProperties": false }, { "type": "object", @@ -106,7 +108,8 @@ "examples": ["https://ocsp-responder.example.com"] } }, - "required": ["credentialStatusType", "location"] + "required": ["credentialStatusType", "location"], + "additionalProperties": false } ] }, @@ -159,47 +162,9 @@ "key": { "type": "string" }, "signature": { "type": "string" } }, - "required": ["proofPurpose", "targetHash", "proofs", "merkleRoot", "salts", "privacy", "key", "signature"], + "required": ["proofPurpose", "targetHash", "proofs", "merkleRoot", "salts", "privacy"], "additionalProperties": false - }, - "network": { - "type": "object", - "properties": { - "chain": { - "type": "string", - "examples": ["ETH"], - "description": "Which blockchain being used" - }, - "chainId": { - "type": "number", - "examples": [5], - "description": "Chain ID of the network used" - } - }, - "required": ["chain", "chainId"] - }, - "attachments": { - "type": "array", - "items": { - "type": "object", - "properties": { - "fileName": { - "type": "string", - "description": "Name of this attachment, with appropriate extensions" - }, - "mimeType": { - "type": "string", - "description": "Media type (or MIME type) of this attachment" - }, - "data": { - "type": "string", - "description": "Base64 encoding of this attachment" - } - }, - "required": ["fileName", "mimeType", "data"], - "additionalProperties": false - } } }, - "required": ["@context", "issuer", "credentialStatus", "credentialSubject", "proof"] + "required": ["@context", "issuer", "credentialStatus", "credentialSubject"] }