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

Enhance JSON Schema validation to support 2019-09 standard....

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: 4.4.0-rc7
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:
      None

      Description

      MongoDB currently only supports the Draft-04 JSON Schema standard (with some omissions) for validation purposes. Draft-04 is pretty long in the tooth now.

      Please enhance JSON Schema validation to support the latest 2019-09 Draft of the standard, specifically including the ability to do conditional subschema validation (ie. if/then/elseĀ  keyword support), which can be found here: https://json-schema.org/specification.html

      Mongoose provides good support for discriminators, where the structure of a document/subdocument depends on a type field (typically _type), as does Mongoid for subclasses.

      Validation of collections that use discriminators is not really possible without support for the if/then/else JSON Schema specification laid outĀ  in the most recent draft of the standard.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-query-optimization Backlog - Query Optimization
              Reporter:
              ataramina@shorecg.com Andrzej Taramina
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Dates

                Created:
                Updated: