You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{
"collMod": "test",
"validator": {
"$jsonSchema": {
"bsonType": "object",
"required": [
"bool_val",
"int32_type",
"int64_type",
],
"properties": {
"bool_val": {
"bsonType": "bool",
"description": "bool_val is required and should be of boolean type"
},
"int32_type": {
"bsonType": "int",
"description": "int32_type is required and should be of integer32 type"
},
"int64_type": {
"bsonType": "long",
"description": "int64_type is required and should be of integer64 type"
}
}
}
},
"validationAction": "error",
"validationLevel": "strict"
}
how to set datatype to integer and boolean validator
The text was updated successfully, but these errors were encountered: