Changing the mandatory property
This example changes objects from being mandatory to optional, depending on their presence. This avoids a problem where a hidden object is required, which will prevent a user from being able to complete the submission.