Repository navigation
Clarify tenure and OUT_OF_RANGE in API description and tests (#107, #109, #110, #111) - #108
albertoramosmonagas wants to merge 2 commits into
Conversation
|
Hi @camaraproject/tenure_codeowners, This PR documents the following behaviour for tenureDate, based on the proposal in the issue #107 (R = regulatory threshold date, D = tenureDate, T = today):
It also adds D > T (future tenureDate) → 400 OUT_OF_RANGE, based on the note in the issue. This is a proposal, not an agreed behaviour: the current .feature already requires “a valid past date” in the happy paths, which suggests a future date is not valid, but the API definition does not say so. Should a future date return 400 OUT_OF_RANGE or 400 INVALID_ARGUMENT? The description and the .feature (new scenario @checkTenure_400.05_out_of_range_future_date) are updated accordingly. Please reach consensus on this point before merging. CC: @tanjadegroot (from release management) |
What type of PR is this?
Add one of the following kinds:
What this PR does / why we need it:
Addresses the documentation gaps on
OUT_OF_RANGEand the definition of "tenure" reported during the r3.3 release review, and fixes the rendering of the mandatory blocks ininfo.description.info.description:tenureDate, with an outcome table, worked examples and an example400 OUT_OF_RANGEresponse;tenureDate(D > T) as400 OUT_OF_RANGE(proposal, see notes below);BEGINmarker so Swagger tools render the following heading correctly.kyc-tenure.feature:tenureDateCheckfalse(subscription started aftertenureDate, within the threshold) andtrue(subscription started before the threshold);@checkTenure_400.05_out_of_range_future_date.No change to the API schema.
Which issue(s) this PR fixes:
Fixes #107
Fixes #109
Fixes #110
Fixes #111
Special notes for reviewers:
tenureDate, S = subscription start date, T = today) is taken from the proposal in the issue.Changelog input