Repository navigation
STF-2532: Remove shipping_address.is_high_risk from the minFraud spec - #32
Conversation
minFraud no longer returns shipping_address.is_high_risk in Insights and Factors responses. Remove the field from the schema and the examples, and regenerate the bundle. STF-2532 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
There was a problem hiding this comment.
🔵 Needs a closer look
Merging this response-contract change requires human confirmation that STF-2444 has been deployed, since its deployment status cannot be verified from this review snapshot.
No open issues 🎉
What changed in this PR
Removes shipping_address.is_high_risk from the minFraud specification to match the planned service change. Merge remains dependent on STF-2444 deploying, targeted for December 9.
Changes:
- Remove the field from
ShippingAddressInsightsand the Insights and Factors examples. - Update the bundled specification to match the source changes.
- Leave the legacy service and
info.versionunchanged.
| File | Description |
|---|---|
| examples/minfraud/insights.yaml | Remove the field from the Insights response example. |
| examples/minfraud/factors.yaml | Remove the field from the Factors response example. |
| components/minfraud-response.yaml | Remove the field from ShippingAddressInsights. |
| bundled/minfraud.yaml | Reflect the schema and example removals in the bundle. |
Review effort: Balanced
horgh
left a comment
There was a problem hiding this comment.
Looks good. Claude has a comment that sounds like it makes sense, though it's pre-existing.
| @@ -379,11 +379,6 @@ schemas: | |||
| billing address. When MaxMind cannot locate an address more | |||
| precisely, it uses country or subdivision coordinates, which can | |||
| make this distance inaccurate. | |||
There was a problem hiding this comment.
Pre-existing, optional: this comment is about AddressInsights at line 335, which is outside the diff.
AddressInsights says "minFraud risk data about a billing address", but ShippingAddressInsights uses it as its allOf base. After this change, ShippingAddressInsights has only one property of its own (distance_to_billing_address). All other shipping address fields, such as is_in_ip_country and latitude, come from a schema that says it describes a billing address. A doc renderer or code generator that shows the base description can show "billing address" for shipping data.
Suggestion: change the AddressInsights description to "minFraud risk data about a billing or shipping address", as the Phone schema does.
🤖 Comment by Claude Opus 5.5.
There was a problem hiding this comment.
Comment from Claude Opus 5.5, an agent working on behalf of Greg.
Fixed in 953cf96. AddressInsights now says "minFraud risk data about a billing or shipping address", as the Phone schema does.
ShippingAddressInsights uses AddressInsights as its allOf base, so most shipping address fields come from a schema that said it was for a billing address. STF-2532 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Summary
Merge this after STF-2444 deploys (target December 9). Before then, the web service can still return the field.
is_high_riskfromShippingAddressInsightsand from the Insights and Factors examples.bundled/minfraud.yaml.The spec does not describe the legacy service, so
shipForwardneeds no change. The spec has no release yet, soinfo.versionstays at 0.1.0.STF-2532
🤖 Generated with Claude Code
Summary by CodeRabbit