move sanitize to ObjectSchema.