{ "$jsonSchema": { "bsonType": "object", "required": ["name", "password", "email", "role"], "properties": { "name": { "bsonType": "string", "minLength": 3, "maxLength": 16 }, "password": { "bsonType": "string" }, "email": { "bsonType": "string" }, "role": { "bsonType": "string" } } } }