Skip to content

fix: omit unset enableUspsCass from Address Validation requests - #560

Open
illuminati1911 wants to merge 1 commit into
masterfrom
fix/omit-unset-address-validation-cass
Open

illuminati1911 wants to merge 1 commit into
masterfrom
fix/omit-unset-address-validation-cass

Conversation

@illuminati1911

@illuminati1911 illuminati1911 commented Dec 3, 2026 •

Copy link
Copy Markdown

Issue

The Address Validation client sends "enableUspsCass": null when callers leave the option unset, rather than omitting the optional field.

Fix

Send enableUspsCass only when it is not None, preserving explicit True and False. The regression test checks all three request bodies and retains the API-key URL assertion.

Verification

python -m pytest -q tests/test_addressvalidation.py passed: one test and three subtests. A live before-and-after comparison with the option unset returned HTTP 200 in both cases; only the original request included "enableUspsCass": null.


Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open a GitHub issue as a bug/feature request before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes #559 🦕

This branch has not been deployed

No deployments
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.

Address Validation: omit enableUspsCass when unset

1 participant