Last active
October 2, 2020 07:04
-
-
Save stfsy/4b8acb7c1b91e5daea0c2fc262268d59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "users", | |
"bsonType": "object", | |
"required": [ | |
"id", | |
"name", | |
"email" | |
], | |
"properties": { | |
"id": { | |
"type": "string", | |
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$", | |
"description": "A unique id for this particular user" | |
}, | |
"name": { | |
"encrypt": { | |
"bsonType": "string", | |
"algorithm": "AEAD_AES_256_CBC_HMAC_SHA_512-Deterministic" | |
}, | |
"description": "The full name of the user" | |
}, | |
"email": { | |
"encrypt": { | |
"bsonType": "string", | |
"algorithm": "AEAD_AES_256_CBC_HMAC_SHA_512-Random" | |
}, | |
"description": "The email address of the user" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment