docs(v4): verify GetCreditLimits wire-shape against official docs (closes #430) - #439
Conversation
Closes #430. Fetched https://yandex.ru/dev/direct/doc/dg-v4/reference/GetCreditLimits and confirmed CLI dry-run output matches docs exactly: - request: {method, finance_token, operation_num} — no param - response: {data: {Currency, Limits: [{ContractID, Limit, LimitSpent}]}} Implementation is already in commands/v4finance.py:200-278; this commit only stamps direct_cli/v4_contracts.py:GetCreditLimits.notes with the docs-verification timestamp. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
|
@claude review. Focus on critical issues: bugs, security vulnerabilities, logical errors, data loss risks, performance problems. Do NOT nitpick style, naming conventions, minor formatting, or subjective preferences — only flag issues that could break functionality or cause real harm in production. |
|
Claude finished @axisrow's task in 58s —— View job Review — no critical issues
Verdict: ship it. The diff is a 4-line append to the Critical-issue scan (all clear):
Minor observation (non-blocking, mentioning only because the PR title says "verify against official docs"): the new note duplicates the existing first sentence in the same No action required from me. The "Live API behaviour was not re-verified" caveat in the PR body is appropriately scoped — |
PR #439 appended a second sentence repeating the wire-shape claim already present in V4_METHOD_CONTRACTS["GetCreditLimits"].notes. Consolidate both into a single docs-verified statement.
Summary
{method, finance_token, operation_num}with noparam.direct_cli/v4_contracts.py:GetCreditLimits.noteswith aDocs-verified 2026-05-28line.commands/v4finance.py:200-278was already correct.Verification
Docs-verified against
dg-v4/reference/GetCreditLimits(response shape too:{data: {Currency, Limits: [{ContractID, Limit, LimitSpent}]}}).Live API behaviour was not re-verified due to absence of finance credentials in this session. If actual API drifts from docs, file a follow-up issue tagged
api-status:docs-drift+needs:live-verification.Test plan
pytest tests/test_v4finance_read.py -k get_credit_limits— 8 passing.Closes #430. Part of milestone 22.
🤖 Generated with Claude Code