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

JSON_SCHEMA_VALID does not validate nested objects

    XMLWordPrintable

Details

    • Bug
    • Status: Confirmed (View Workflow)
    • Major
    • Resolution: Unresolved
    • 11.8.1
    • 11.4, 11.8
    • JSON
    • None
    • Debian bookworm, client v15.2

    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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Git Integration

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