Skip to content

fix: update client for Ledger v0.20.2 error responses - #63

Merged
wini83 merged 2 commits into
mainfrom
bot/update-from-ledger-v0.20.2
Oct 17, 2026
Merged

wini83 merged 2 commits into
mainfrom
bot/update-from-ledger-v0.20.2

Conversation

@github-actions

@github-actions github-actions Bot commented Oct 17, 2026 •

Copy link
Copy Markdown
Contributor

Regenerate the low-level client from the integration OpenAPI contract published with Ledger v0.20.2 and adapt the handwritten facade to its error responses.

Remove the obsolete HTTPValidationError import and use detailed endpoint responses to preserve actual HTTP statuses. Map HTTP 422 to OblidogValidationError, typed integration run conflicts to OblidogConflictError, and other HTTP errors to OblidogApiError. Keep the complete original response bytes, including error metadata and params. Translate unexpected-status exceptions with their cause preserved.

Update error response fixtures and add regression coverage across obligations, category data, and integration context, including HTTP 400/401/403/404/409/413/422/500/503 and no replay of rejected requests.

Validation: 100 tests passed; Ruff check and format, strict documentation build, compileall, distribution verification, and installed wheel public API smoke test passed.

@wini83 wini83 changed the title chore: update client from ledger v0.20.2 fix: update client for Ledger v0.20.2 error responses Oct 17, 2026
@wini83
wini83 merged commit bc6ca5f into main Oct 17, 2026
5 checks passed
@wini83
wini83 deleted the bot/update-from-ledger-v0.20.2 branch October 17, 2026 07:32
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.

1 participant