Tidy up a few var declarations in schemata.js
Ensure the doc comments in schemata.js are consistent and added @api comment
Change it so that a validator is just a function, not an object with a 'validate' property
Change so that validators don't have to return JS Error objects, they can now just return strings
Change how Object casting happens, now always returns a blank object if the type isn't object
Tidy up a few var declarations in schemata.js Ensure the doc comments in schemata.js are consistent and added @api comment Change it so that a validator is just a function, not an object with a 'validate' property Change so that validators don't have to return JS Error objects, they can now just return strings Change how Object casting happens, now always returns a blank object if the type isn't object