bson_validate (3) Linux Manual Page
NAME bson_validate() – Validates a BSON document by walking through the document and inspecting the fields for valid content. SYNOPSIS typedef enum { BSON_VALIDATE_NONE = 0, BSON_VALIDATE_UTF8 = (1 << 0), BSON_VALIDATE_DOLLAR_KEYS = (1 << 1), BSON_VALIDATE_DOT_KEYS = (1 << 2), BSON_VALIDATE_UTF8_ALLOW_NULL = (1 << 3), } bson_validate_flags_t; bool bson_validate(const bson_t *bson, bson_validate_flags_t flags, size_t…
