| 1903 | |
| 1904 | |
| 1905 | static void |
| 1906 | CheckSyntaxForValidator(const bson_iter_t *validator) |
| 1907 | { |
| 1908 | if (bson_iter_type(validator) != BSON_TYPE_DOCUMENT) |
| 1909 | { |
| 1910 | ereport(ERROR, (errcode(ERRCODE_DOCUMENTDB_TYPEMISMATCH), |
| 1911 | errmsg("$jsonSchema must be of object type"))); |
| 1912 | } |
| 1913 | |
| 1914 | bson_iter_t schemaIter; |
| 1915 | if (bson_iter_recurse(validator, &schemaIter)) |
| 1916 | { |
| 1917 | SchemaTreeState localTreeState = { }; |
| 1918 | BuildSchemaTree(&localTreeState, &schemaIter); |
| 1919 | } |
| 1920 | } |
| 1921 | |
| 1922 | |
| 1923 | /* |
no test coverage detected