-
Type: Task
-
Resolution: Won't Fix
-
Priority: 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.