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

Establish the JSON Schema library

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Querying
    • Labels:
      None
    • Query 2017-06-19

      Create a src/mongo/db/matcher/schema subdirectory and define the public interface of the JSON Schema library. It should have at least a validate function (names subject to change):

      /**
       * Returns true if 'obj' is valid against this schema.
       */
      bool JSONSchema::isValid(BSONObj obj);
      

      We should also be able to create a no-op JSON Schema object whose validation always returns true.

            Assignee:
            anne.lim Anne Lim
            Reporter:
            kyle.suarez@mongodb.com Kyle Suarez
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: