docs(api): say what has_more means, not just how it is derived #14
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
docs/development/api.md:31gives the derivation correctly (has_moreisoffset + len(items) < total) but never states what the field means relative to the response. That gap misled a real reader: me, building theaac athenaconnector.The misread
For the count-only form (
limit=0, line 36) a nonzero collection returns:I read
has_moreas "more rows are reachable from this response", sohas_more: truebesidenext_offset: nulllooked self-contradictory. I wrote it up as an API defect and proposed a one-line "fix" toPage.build— which would have negatedtests/endpoints/test_pagination.py:170, whereTestCountOnlyFormassertshas_more is (body["total"] > 0)on every list route. The behaviour is specified and tested; my reading was wrong.Line 36 promises "no rows, a correct
total, both offsets null" and deliberately does not promisehas_moreis false, but a reader has to notice the absence of that promise to draw the right conclusion.Suggested addition
Alongside the derivation, one sentence on meaning:
That closes the gap without changing the contract, and makes the count-only example read as intentional rather than broken.