Skip to content

STF-2532: Remove shipping_address.is_high_risk from the minFraud spec - #32

Merged
horgh merged 2 commits into
mainfrom
greg/stf-2532-deprecate-shipping-is-high-risk
Dec 2, 2026
Merged

horgh merged 2 commits into
mainfrom
greg/stf-2532-deprecate-shipping-is-high-risk

Conversation

@oschwald

@oschwald oschwald commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Summary

Merge this after STF-2444 deploys (target December 9). Before then, the web service can still return the field.

  • Remove is_high_risk from ShippingAddressInsights and from the Insights and Factors examples.
  • Regenerate bundled/minfraud.yaml.

The spec does not describe the legacy service, so shipForward needs no change. The spec has no release yet, so info.version stays at 0.1.0.

STF-2532

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Clarified that address risk insights may relate to billing or shipping addresses.
    • Removed the shipping address high-risk indicator from the minFraud response documentation and examples, reflecting the available response information.

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>
@oschwald
oschwald requested review from horgh and a balanced review from Copilot December 1, 2026 22:10
@coderabbitai

coderabbitai Bot commented Dec 1, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The OpenAPI specification now describes risk data for billing or shipping addresses. The ShippingAddressInsights schema and the Insights and Factors response examples no longer include shipping_address.is_high_risk.

Changes: Shipping address risk documentation updates

Layer / File(s) Summary
Update address risk schema and examples
components/minfraud-response.yaml, bundled/minfraud.yaml, examples/minfraud/{insights,factors}.yaml
AddressInsights now describes risk data for billing or shipping addresses. The ShippingAddressInsights schema and the Insights and Factors examples no longer include shipping_address.is_high_risk.

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Other

Merge Risk: Minimal · up to 953cf

This updates API documentation to drop a shipping address field and clarify an address description. There is no runtime impact. Merge once the noted service deployment has happened.

Pre-merge checks: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title names the primary change: removing shipping_address.is_high_risk from the minFraud spec. The raw summary confirms that ShippingAddressInsights no longer defines is_high_risk, and that the fi…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title names the primary change: removing shipping_address.is_high_risk from the minFraud spec. The raw summary confirms that ShippingAddressInsights no longer defines is_high_risk, and that the field was removed from the Insights and Factors examples. The ticket reference STF-2532 is extra detail but does not make the title unclear. The title is specific and matches the changeset.

Finishing Touches

Generate unit tests (beta)

  • Commit to this branch
  • Create a new PR

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

A rabbit reads the schema with care,
Shipping risk fields are no longer there.
Billing and shipping share the description,
Examples reflect the specification.
Hop, hop—the docs are in good order!

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: ASSERTIVE
  • Plan: Advanced
  • Run ID: a36542bb-9fae-4cab-b95a-89a7a856a0fd
Commits

Reviewing files that changed from the base of the PR and between 8269781 and 953cf96.

Files selected for processing: 2

  • bundled/minfraud.yaml
  • components/minfraud-response.yaml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🔵 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 ShippingAddressInsights and the Insights and Factors examples.
  • Update the bundled specification to match the source changes.
  • Leave the legacy service and info.version unchanged.
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

@oschwald
oschwald marked this pull request as draft December 1, 2026 22:54
@oschwald
oschwald marked this pull request as ready for review December 1, 2026 23:04

@horgh horgh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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>
@oschwald
oschwald requested review from horgh and a balanced review from Copilot December 2, 2026 18:04

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

@horgh
horgh merged commit cbe8b0d into main Dec 2, 2026
6 checks passed
@horgh
horgh deleted the greg/stf-2532-deprecate-shipping-is-high-risk branch December 2, 2026 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants