Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/address string array handling #1

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

pathartl
Copy link

@pathartl pathartl commented Aug 7, 2020

UPS's API has a bug in their serializer where for the Street field it may return either string or string[] similar to Candidate. I wrote a JsonConverter implementation that helps mitigate this by only grabbing the string[]'s first value. It'd be easy to change this to do a String.Join(), but after seeing what's returned in multi-value situations, the other entries in the array were never useful.

UPS now requires that TLS 1.2 be used when communicating the API.
The UPS API may return a string array instead of a single string value due to a bug in their serializer. The addition of another custom JsonConverter helps mitigate this. Only the first part of the returned string array will be used.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant