namlook/mongokit — pull request #127 by JohnBrodie (2013-07-15 19:26:38+00:00)
Title: Fix off-by-one error in schema_document

On line 563 of `schema_document`, the length of the document being validated is checked against the length of the structure. If `_id` is not specified in the structure (as standards dictate), this test will fail.

This was noticed when attempting to get migrations working - adding a field did not trigger any error, as it just caused the length test to pass.