I create a request for new PlaidApi.identity_verification_create, and with debugging enabled, I can see it makes the request and returns the response. When it is serializing the data back, it throws a validations exception because the return class isn't checking for phone number nil.
I get the validation message: invalid value for "phone_number", must conform to the pattern (?-mix:^\+[1-9]\d{6,14}$).
Looking at the IdentityVerificationUserData vs the IdentityVerificationRequestUser. The Request user checks that phone number is nil to validate, the UserData model doesn't.
@aaronbhansen thank you for reporting this issue! We actually just recently ran into this internally and have a fix in progress. It should go out with the next client library release.
I create a request for new PlaidApi.identity_verification_create, and with debugging enabled, I can see it makes the request and returns the response. When it is serializing the data back, it throws a validations exception because the return class isn't checking for phone number nil.
I get the validation message:
invalid value for "phone_number", must conform to the pattern (?-mix:^\+[1-9]\d{6,14}$).
Looking at the IdentityVerificationUserData vs the IdentityVerificationRequestUser. The Request user checks that phone number is nil to validate, the UserData model doesn't.
Here is the full debug