mongo_id
Checks that the value is a BSON ObjectId: 24 hex digits.
Error codes: WRONG_MONGO_ID, FORMAT_ERROR
rules
input
Invaliderrors
{
"id": "WRONG_MONGO_ID"
}Hex digits are case-insensitive, and the case of the input is kept in the output.
Checks that the value is a BSON ObjectId: 24 hex digits.
Error codes: WRONG_MONGO_ID, FORMAT_ERROR
{
id: 'mongo_id'
}{
id: '507f1f77bcf86cd79943901'
}{
"id": "WRONG_MONGO_ID"
}Hex digits are case-insensitive, and the case of the input is kept in the output.