Enforce a schema and validate incoming JS objects