Schema should only be set if `!== null`