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

Establish the JSON Schema library

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Querying
    • None
    • Query 2017-06-19

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: