Files
documentdb/internal/pg_documentdb_distributed/src
Jia Hu b2ef1f3663 Merged PR 1585449: [json schema] enable $jsonSchema in query command
### 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 -->
2025-03-18 21:57:32 -07:00
..