Repository navigation
Breaking changes
Setting a field to None now sends null instead of omitting the field. The client is now generated with openapi-generator 7.27.0 (was 7.23.0). The API spec marks many fields as nullable, but the old generator dropped that on about 120 model fields, such as memo, payee_id, payee_name and category_id on transactions, and note and goal_target on categories.
In 4.4.1, ynab.ExistingTransaction(memo=None, payee_name="Store").to_dict() returned {"payee_name": "Store"}, so the memo was left unchanged. In 5.0.0 it returns {"payee_name": "Store", "memo": None}, which clears the memo. Code that passes None to mean "leave this field alone" needs to leave the field out instead. Fields that are not passed, including keys missing from a dict given to from_dict, are still omitted. Reading attributes on responses is unaffected, but to_dict() on a response model now includes keys whose value is null. (#114)
New
update_categorywithExistingCategory(goal_target=None)now removes an existing target, which the nullability fix above makes possible. (#114)import_transactionsis deprecated and raises aDeprecationWarning. YNAB imports linked-account transactions automatically, and the endpoint now always returns an empty list of transaction ids. (#114)ynab.__version__and the default User-Agent now report the installed version. They reported 4.2.0 in 4.3.0 through 4.4.1. (#114)- Generated from API spec 1.88.0. (#114)
What's Changed
- Bump platformdirs from 4.12.2 to 4.12.4 by @dependabot[bot] in #102
- Bump pyproject-api from 1.11.2 to 1.11.4 by @dependabot[bot] in #104
- Bump tox from 4.64.9 to 4.65.0 by @dependabot[bot] in #105
- Bump iniconfig from 2.3.0 to 2.3.1 by @dependabot[bot] in #103
- Bump pluggy from 1.6.0 to 1.7.0 by @dependabot[bot] in #106
- Bump pyflakes from 4.0.1 to 4.0.3 by @dependabot[bot] in #107
- Bump virtualenv from 21.14.6 to 21.14.7 by @dependabot[bot] in #108
- Bump actions/setup-python from 7.0.0 to 7.1.0 by @dependabot[bot] in #110
- Bump python-discovery from 1.6.1 to 1.6.4 by @dependabot[bot] in #111
- Bump distlib from 0.4.3 to 0.4.4 by @dependabot[bot] in #112
- Bump pypa/gh-action-pypi-publish from 1.14.2 to 1.14.3 by @dependabot[bot] in #109
- Bump pydantic from 2.13.5 to 2.14.1 by @dependabot[bot] in #113
- Regenerate SDK from server specification version 1.88.0 by @bradymholt in #114
Full Changelog: 4.4.1...5.0.0