Open swiftvimla opened 1 year ago
If you want to use the ParsedValue
in a union you need to either:
test
.serialize
returns {success: false, value: ... }
when the value is not valid.We can't test the underlying value first when in serialize mode because we need the serialised value in order to test it against the underlying type.
I ran this complete example in Quokka to show the output inline.