Remove unused imports.
Use type matching instead of extractor in convertJavaScriptToScalaWithField method.

Extractor makes code verbose in this case.
Add validations field on schema.

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