Given an object and a JSON schema, generate the partial schema for that object. Used for validating partial updates.