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

Extend JSON Schema implementation to support conditional application of subschemas

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None
    • Query Optimization

    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

        Activity

          People

            backlog-query-optimization Backlog - Query Optimization
            david.storch@mongodb.com David Storch
            Votes:
            4 Vote for this issue
            Watchers:
            10 Start watching this issue

            Dates

              Created:
              Updated: