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

!fix: allow alternative error format #242

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

Conversation

Justintime50
Copy link
Member

@Justintime50 Justintime50 commented Feb 27, 2025

Description

  • Fixes error parsing
    • Allows for alternative format of errors field (previously we deserialized the errors field into a list of Error objects; however, sometimes the errors are simply a list of strings. This change makes the errors field an interface, allowing for either the renamed FieldError object or a list of strings. Users will need to check for the type of error returned and handle appropriately)
    • Renamed the Error struct to FieldError to better match API docs and language

Testing

  • Add alternative format test
  • Add address verification error test

Pull Request Type

Please select the option(s) that are relevant to this PR.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Improvement (fixing a typo, updating readme, renaming a variable name, etc.)

@Justintime50 Justintime50 marked this pull request as ready for review February 28, 2025 18:46
@Justintime50 Justintime50 requested a review from a team as a code owner February 28, 2025 18:46
keheitz
keheitz previously approved these changes Feb 28, 2025
@Justintime50 Justintime50 dismissed stale reviews from keheitz and stephenjwatkins via d715ebf February 28, 2025 23:21
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.

3 participants