Skip to content
/ server Public

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

Open
abhishek593 wants to merge 1 commit intoMariaDB:12.3from
abhishek593:MDEV-38033-12.3
Open

MDEV-38033: JSON_SCHEMA_VALID returns wrong result for array of objects#4755
abhishek593 wants to merge 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.

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.

3 participants