Conversation
Part of STF-190. The `clear` tag retracts a previously reported fraud report tag on a transaction, restoring its label to "unknown" (distinct from the positive `not_fraud` signal). The backend support was added in STF-15; this exposes the new value through the client library. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
There was a problem hiding this comment.
Code Review
This pull request adds "clear" as a valid value for the "tag" parameter in the Report Transaction API. The changes include updating the validation logic in src/minfraud/validation.py, documenting the addition in HISTORY.rst, and expanding the test coverage in tests/test_validation.py. I have no feedback to provide.
horgh
approved these changes
Apr 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
clearto the_tagvalidator insrc/minfraud/validation.pyso theReport Transaction API accepts the new tag.
tests/test_validation.pyto cover the new value.3.3.0entry.The
cleartag retracts a previously reported fraud report on a transaction(restoring its label to "unknown", distinct from the positive
not_fraudsignal). Backend support shipped in STF-15; this adds SDK support per STF-190.
Linear: https://linear.app/maxmind/issue/STF-190
Test plan
uv run pytest tests/test_validation.py— 62 passeduv run ruff format/uv run ruff check— clean🤖 Generated with Claude Code