Even though it isn't standard, you should be able to allow a property such as a nested object to be null, which means that every thing below is only evaluated if it exists. That means you can set required: true on nested properties but only have that evaluated if the object is present.
Even though it isn't standard, you should be able to allow a property such as a nested object to be null, which means that every thing below is only evaluated if it exists. That means you can set required: true on nested properties but only have that evaluated if the object is present.