[#200] Use model.toObject() in JSON Schema validation.