Adds field_opt, which allows a field to be missing, or expects the decode to succeed if present. This is different from maybe (field .. which allows the decode to fail and still returns None, which makes it hard to distinguish between the field actually not being sent, and decode failure.
Adds
field_opt
, which allows a field to be missing, or expects the decode to succeed if present. This is different frommaybe (field ..
which allows the decode to fail and still returns None, which makes it hard to distinguish between the field actually not being sent, and decode failure.