Closed
Description
The schema creator may miss to wrap JsonSchemaProperty
into EncryptedJsonSchemaProperty
for properties that are considered entities.
The following input
@Encrypted(algorithm = ...)
class X {
// ...
@Encrypted Y yValue;
}
class Y {
String value;
}
should create a schema as follows.
{
"encryptMetadata" : { "algorithm" : "..." },
"type" : "object",
"properties" : {
"yValue" : { "encrypt" : { "bsonType": "object" } }
}
}