encryptedMessageSchema top-level property
JsonSchema
encryptedMessageSchema
getter/setter pair
Implementation
var encryptedMessageSchema = JsonSchema.create({
'type': 'object',
'properties': {
'ciphertext': {'type': 'string'},
'tag': {'type': 'string'},
'protected': {'type': 'string'},
'unprotected': {'type': 'string'},
'aad': {'type': 'string'},
'iv': {'type': 'string'},
'recipients': {
'type': 'array',
'contains': {
'type': 'object',
'properties': {
'encrypted_key': {'type': 'string'},
'header': {'type': 'object'}
},
'required': ['encrypted_key']
}
}
},
'required': ['ciphertext', 'recipients', 'iv', 'tag']
});