Details
-
Task
-
Resolution: Won't Fix
-
Major - P3
-
None
-
None
-
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.