mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? Yes ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Feature ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Are you introducing any new config? If yes, do you have tests with and without them being set? No ### ChangeLog (Refer [Template](../oss/CHANGELOG.md)) ### Description 1. enable `$jsonSchema` working in command query 2. support schema validation in `findAndModify` 3. enable 3 js tests to pass ---- #### AI description (iteration 1) #### PR Classification New feature #### PR Summary This pull request enables the use of `$jsonSchema` in commands and includes schema validation. - `query_operator.c`: Removed restriction on `$jsonSchema` usage and added schema validation logic. - `feature_flag_configs.c`: Enabled schema validation and bypass document validation by default. - `bson_json_schema_tree.c`: Added logging for parsing `$jsonSchema` keywords. <!-- GitOpsUserAgent=GitOps.Apps.Server.pullrequestcopilot -->