Skip to content

APIv3: Cast parameters for strict types - #842

Open
jfilter wants to merge 1 commit into
Project60:masterfrom
jfilter:apiv3-strict-types
Open

jfilter wants to merge 1 commit into
Project60:masterfrom
jfilter:apiv3-strict-types

Conversation

@jfilter

@jfilter jfilter commented Oct 29, 2026

Copy link
Copy Markdown

With strict_types, two APIv3 wrappers pass values of the wrong type on to typed functions and fail with a TypeError:

  • SepaLogic.update collects creditor IDs as strings from the API result.
  • SepaMandate.createfull passes check_permissions through unchanged, so callers that send 0/1 (e.g. Twingle) fail.

Both values are now cast. The added tests cover both calls.

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