Conditional validation on edit of object

Your validation function should check whether there is data provided, and behave as required for the other scenario when there isn’t.