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

JSON Schema incorrectly treats dotted field names as paths

    XMLWordPrintable

    Details

      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

              Assignee:
              katherine.wu Katherine Wu
              Reporter:
              nicholas.zolnierz Nicholas Zolnierz
              Participants:
              Votes:
              1 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated: