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

JSON Schema incorrectly treats dotted field names as paths

    XMLWordPrintable

    Details

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

      Description

      > db.test.find()
      { "_id" : ObjectId("59dcfc510d45ac010df64f5f"), "a.b" : 1 }
      > db.test.find({$jsonSchema: {properties: {'a.b': {type: 'number'}}, required: ['a.b']}})
      > 
      

      There are several similar tickets, but this is meant to track the behavior specifically within a $jsonSchema validator.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated: