Repository navigation
STF-2488: Update verification input documentation #334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -1,5 +1,16 @@ | ||||||||||||||||||||||||||||||||||||||||||
| # Changelog | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| ## v2.11.1 | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| * Updated the documentation for the email and phone verification attributes. | ||||||||||||||||||||||||||||||||||||||||||
| Set `was_verification_successful` and `phone_was_verification_successful` | ||||||||||||||||||||||||||||||||||||||||||
| to `true` if your system considers the email address or phone number | ||||||||||||||||||||||||||||||||||||||||||
| verified as of the time of the event. Set them to `false` if it is not | ||||||||||||||||||||||||||||||||||||||||||
| verified, for example if its only verification is pending or failed. If | ||||||||||||||||||||||||||||||||||||||||||
| your system does not track verification, leave them unset. Set a | ||||||||||||||||||||||||||||||||||||||||||
| verification time only when the value is `true`. There are no code | ||||||||||||||||||||||||||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: this entry does not say that Suggest one more sentence, for example: "The verification time is now the time of the verification behind a The Java PR has the same comment. 🤖 Comment by Claude Opus 5.5. |
||||||||||||||||||||||||||||||||||||||||||
| changes. | ||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
+5
to
+12
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This entry does not name the largest change from v2.11.0. The v2.11.0 docs said to leave the boolean unset if no one tried to verify the contact. Now a caller that tracks verification must send The entry also does not say that:
Possible text:
Suggested change
🤖 Comment by Claude Opus 5.5. |
||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| ## v2.11.0 (2026-11-18) | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| * Added the `phone_verification_method`, | ||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||
| Original file line number | Diff line number | Diff line change | ||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -31,20 +31,29 @@ class Email < Base | |||||||||||||||||
| # @return [Boolean, nil] | ||||||||||||||||||
| attr_accessor :hash_address | ||||||||||||||||||
|
|
||||||||||||||||||
| # The date and time of the most recent attempt to verify the email | ||||||||||||||||||
| # address, if known. The string must be in the RFC 3339 date-time | ||||||||||||||||||
| # format, e.g., "2012-04-12T23:20:50.52Z". The time must not be before | ||||||||||||||||||
| # 1970-01-01T00:00:00Z or more than two days in the future. The web | ||||||||||||||||||
| # service ignores a time outside this range and returns a warning. | ||||||||||||||||||
| # The date and time that the end user completed the most recent | ||||||||||||||||||
| # verification of the email address, if known. Set this only if | ||||||||||||||||||
| # +was_verification_successful+ is +true+. The string must be in the | ||||||||||||||||||
|
coderabbitai[bot] marked this conversation as resolved.
Resolved
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit, outside the diff:
The client does not enforce the pairing, so the tests pass. But a reader who copies the "valid values" example gets a request that the docs now forbid. Consider 🤖 Comment by Claude Opus 5.5. |
||||||||||||||||||
| # RFC 3339 date-time format, e.g., "2012-04-12T23:20:50.52Z". The time | ||||||||||||||||||
| # must not be before 1970-01-01T00:00:00Z or more than two days in the | ||||||||||||||||||
| # future. The web service ignores a time outside this range and returns | ||||||||||||||||||
| # a warning. | ||||||||||||||||||
| # | ||||||||||||||||||
| # @see https://datatracker.ietf.org/doc/html/rfc3339 | ||||||||||||||||||
| # | ||||||||||||||||||
| # @return [String, nil] | ||||||||||||||||||
| attr_accessor :verification_time | ||||||||||||||||||
|
|
||||||||||||||||||
| # Whether the most recent verification that the end user controls the | ||||||||||||||||||
| # email address succeeded, for example by confirming a link sent to the | ||||||||||||||||||
| # address. Do not include this field if no verification was attempted. | ||||||||||||||||||
| # Whether the end user has verified that they control the email | ||||||||||||||||||
| # address, as of the time of the event, for example by confirming a | ||||||||||||||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nit: "as of the time of the event, for example by confirming a link sent to the address" puts the example after the time phrase. It reads as an example of the time, not of how the user verified the address. maxmind/openapi#28 puts the example in a separate sentence: "For example, the user clicked a link that you sent to the address." Suggest the same here, for example: "Whether the end user has verified that they control the email address, as of the time of the event. For example, the user confirmed a link sent to the address." The same comment is on the Java and .NET PRs. 🤖 Comment by Claude Opus 5.5. |
||||||||||||||||||
| # link sent to the address. Set this to +true+ if your system considers | ||||||||||||||||||
| # the email address verified as of the time of the event. An earlier | ||||||||||||||||||
| # completed verification still counts, even if a newer attempt is | ||||||||||||||||||
| # pending or failed. Set it to +false+ if the email address is not | ||||||||||||||||||
| # verified. This includes one whose only verification is pending or | ||||||||||||||||||
| # failed, and one that you did not try to verify. Leaving this unset is | ||||||||||||||||||
| # not equivalent to +false+. If your system does not track email | ||||||||||||||||||
| # verification, leave this unset. | ||||||||||||||||||
|
Comment on lines
+54
to
+56
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The new text leaves out two sentences from the reference text that the sibling PRs use (for example maxmind/openapi#28 and maxmind/dev-site#1826):
Without the first sentence, a caller that tracks verification can still read the text as "set it only when you have a result", and leave it unset for some requests. Without the second, the caller does not know why the unset-versus-
Suggested change
# failed, and one that you did not try to verify. Leaving this unset is
# not equivalent to +false+. If your system tracks phone verification,
# set this to +true+ or +false+ for every request that includes this
# phone number. If your system does not track phone verification,
# leave this unset. The choice can affect risk scores.🤖 Comment by Claude Opus 5.5. |
||||||||||||||||||
| # | ||||||||||||||||||
| # @return [Boolean, nil] | ||||||||||||||||||
| attr_accessor :was_verification_successful | ||||||||||||||||||
|
|
||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: "Set them to
falseif it is not verified, for example if its only verification is pending or failed" changes from "them" (the attributes) to "it" (the email address or phone number). A reader can take "it" to mean the attributes.Suggest: "Set them to
falseif the email address or phone number is not verified, for example if its only verification is pending or failed."The suggested text in the other comment on this entry keeps the same "them ... it" wording. The same comment is on the Java, .NET, and PHP PRs.
🤖 Comment by Claude Opus 5.5.