Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-36719

JSON_SCHEMA_VALID does not validate nested objects

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Duplicate
    • 11.8.1
    • N/A
    • JSON
    • None
    • Debian bookworm, client v15.2
    • Not for Release Notes

    Description

      When validating schemas where an array contains either arrays or objects, valid (according to the specification) schemas return false.

      Minimal example:

      SELECT JSON_SCHEMA_VALID('{"type": "array", "items": {"type": "object"}}', '[{}]');

      Attachments

        Issue Links

          Activity

            People

              rucha174 Rucha Deodhar
              Aonodensetsu Remigiusz Dończyk
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.