diff --git a/lambda/update/attorney_sign.go b/lambda/update/attorney_sign.go index db29fb91..505fc58e 100644 --- a/lambda/update/attorney_sign.go +++ b/lambda/update/attorney_sign.go @@ -63,7 +63,7 @@ func validateAttorneySign(changes []shared.Change, lpa *shared.Lpa) (AttorneySig Field("/channel", &data.Channel, parse.Validate(func() []shared.FieldError { return validate.IsValid("", data.Channel) }), parse.MustMatchExisting()). - Field("/email", &data.Email, parse.MustMatchExisting()). + Field("/email", &data.Email, parse.MustMatchExisting(), parse.Optional()). Consumed() }). Consumed() diff --git a/lambda/update/attorney_sign_test.go b/lambda/update/attorney_sign_test.go index 20063773..da63e1fa 100644 --- a/lambda/update/attorney_sign_test.go +++ b/lambda/update/attorney_sign_test.go @@ -77,11 +77,6 @@ func TestValidateUpdateAttorneySign(t *testing.T) { New: json.RawMessage(`"online"`), Old: jsonNull, }, - { - Key: "/attorneys/0/email", - New: json.RawMessage(`"a@example.com"`), - Old: jsonNull, - }, }, }, lpa: &shared.Lpa{LpaInit: shared.LpaInit{Attorneys: []shared.Attorney{