Skip to content

Conversation

@alnacle
Copy link

@alnacle alnacle commented Dec 19, 2025

No description provided.

Copy link
Member

@dragonmantank dragonmantank left a comment

Choose a reason for hiding this comment

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

Just one thing, avoid a request if we don't have to make it.


options = IdentityInsightsRequest(
phone_number="1234567890",
insights=InsightsRequest(format=EmptyInsight())
Copy link
Member

Choose a reason for hiding this comment

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

This would be one of those things where we should be able to fail sale early - it makes no sense to send an empty request, so we should save the HTTP request and just throw the proper exception.

Copy link
Author

Choose a reason for hiding this comment

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

Not sure if I follow you. Identity Insights needs to include a explicit empty object in the request for some insights (format, carrier information, roaming and reachability).

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.

2 participants