Is there a way to unset a property from the data object from a custom renderer? I know there are two ways to set data (onChange
and handleChange
).
Specifically, I’m asking because of AJV validation. If I have an object subschema where only one property is filled out by the user (and the rest is auto-filled), and that object is required, when the user-filled property is empty, I can’t really update the main object with a null
because the validation will show an error saying it needs to be an object, and I can’t update it with a {}
because then the required rule doesn’t work.
Thanks in advance!