Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions bundled/minfraud.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 1 addition & 6 deletions components/minfraud-response.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ schemas:
time.
AddressInsights:
type: object
description: minFraud risk data about a billing address.
description: minFraud risk data about a billing or shipping address.
properties:
distance_to_ip_location:
type: integer
Expand Down Expand Up @@ -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.

is_high_risk:
type: boolean
description: >-
True if MaxMind associates the shipping address with fraudulent
transactions. Present only when a shipping address was given.
Phone:
type: object
description: minFraud risk data about a billing or shipping phone number.
Expand Down
1 change: 0 additions & 1 deletion examples/minfraud/factors.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ value:
shipping_address:
distance_to_billing_address: 22
distance_to_ip_location: 15
is_high_risk: true
is_in_ip_country: true
is_postal_in_city: true
latitude: 37.632
Expand Down
1 change: 0 additions & 1 deletion examples/minfraud/insights.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ value:
shipping_address:
distance_to_billing_address: 22
distance_to_ip_location: 15
is_high_risk: true
is_in_ip_country: true
is_postal_in_city: true
latitude: 37.632
Expand Down
Loading