Add validations field on schema.

Currently, only min/max validations for numeric values are implemented.
Validate before save and insert document.