You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm wondering if it's possible to have the validator either use an empty value (eg, "" for strings, 0 for numbers, false for booleans, etc) or just fully remove the property if it's in an array or optional, when there's an incorrect type.
I've looked through the docs, but can't seem to find anything related to this. Closest thing was the default option for properties, but that only works if the property is missing, not if it's the wrong type.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I'm wondering if it's possible to have the validator either use an empty value (eg,
""
for strings,0
for numbers,false
for booleans, etc) or just fully remove the property if it's in an array or optional, when there's an incorrect type.I've looked through the docs, but can't seem to find anything related to this. Closest thing was the default option for properties, but that only works if the property is missing, not if it's the wrong type.
Beta Was this translation helpful? Give feedback.
All reactions