Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-42035

Extend JSON Schema implementation to support conditional application of subschemas

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: Querying
    • Labels:
      None

      Description

      JSON Schema draft 7 added an if, then, else construct for conditionally applying a subschema: https://json-schema.org/draft-07/json-schema-release-notes.html. This would be a useful feature for users with $jsonSchema match expressions inside a document validator. We should add support for this in MongoDB's implementation of JSON Schema.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-query-optimization Backlog - Query Optimization
              Reporter:
              david.storch David Storch
              Participants:
              Votes:
              2 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated: