I wonder if it's possible to delete the default value from the withDefault field when extending it, for instance doing:
schema.extract("withDefault").default() so that the default is reset to no default value.
And then for the array, I wonder if it's also possible to override the list of possible items, let's say instead of 1 and 2, I want the list to be 2, 3 and 4.
Let's say I have the following schema:
I wonder if it's possible to delete the default value from the
withDefault
field when extending it, for instance doing:schema.extract("withDefault").default()
so that the default is reset to no default value.And then for the array, I wonder if it's also possible to override the list of possible items, let's say instead of 1 and 2, I want the list to be 2, 3 and 4.