Skip to content
/ server Public

MDEV-38033: JSON_SCHEMA_VALID returns wrong result for array of objects#4755

Merged
grooverdan merged 1 commit intoMariaDB:12.3from
abhishek593:MDEV-38033-12.3
Mar 9, 2026
Merged

MDEV-38033: JSON_SCHEMA_VALID returns wrong result for array of objects#4755
grooverdan merged 1 commit intoMariaDB:12.3from
abhishek593:MDEV-38033-12.3

Conversation

@abhishek593
Copy link

Fix a bug in Json_schema_items::validate where it was missing a json_skip_level() call. Without this skip, the validator would incorrectly recurse into non-scalar array elements (like objects) and try to validate their internal keys/values against the array's item schema.

Fix a bug in Json_schema_items::validate where it was missing a
json_skip_level() call. Without this skip, the validator would
incorrectly recurse into non-scalar array elements (like objects)
and try to validate their internal keys/values against the array's
item schema.
@abhishek593
Copy link
Author

@grooverdan This is the same PR as #4727 (The old branch name contained 12.1, so I wanted it to change to 12.3).

@gkodinov gkodinov added the External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements. label Mar 9, 2026
Copy link
Member

@gkodinov gkodinov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is restoring the preliminary review state for the other PR.

Please work with Rucha on the final review.

@grooverdan
Copy link
Member

@grooverdan This is the same PR as #4727 (The old branch name contained 12.1, so I wanted it to change to 12.3).

Yep, unfortunate you can't rename the branch name of a PR. I've started to not include version in branches, but overall it doesn't matter too much if its misnamed, the branch its on soon gets forgotten after its merged :-)

@grooverdan grooverdan merged commit 620733d into MariaDB:12.3 Mar 9, 2026
18 checks passed
@grooverdan
Copy link
Member

Thanks for the fix @abhishek593!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

External Contribution All PRs from entities outside of MariaDB Foundation, Corporation, Codership agreements.

Development

Successfully merging this pull request may close these issues.

4 participants