I'd like to propose a special case for the type signature where an option wraps a union.
I believe that when external input is not correct (say an unknown case) that if the type is Union option it should be a default or a config option to return None instead of throwing
Currently an unknown case will just throw in the recursive call to the same serializer with
System.Exception: Cannot parse DU field-less value: z. Expected names: x, y
I'd like to propose a special case for the type signature where an option wraps a union.
I believe that when external input is not correct (say an unknown case) that if the type is
Union optionit should be a default or a config option to return None instead of throwingCurrently an unknown case will just throw in the recursive call to the same serializer with
System.Exception: Cannot parse DU field-less value: z. Expected names: x, y