andreroggeri / ynab-sdk-python

Python implementation of the YNAB API (https://api.youneedabudget.com/)
Apache License 2.0
27 stars 10 forks source link

Mismapped Parameters When Pulling Categories from Budget Detail #102

Closed birdwing closed 2 years ago

birdwing commented 2 years ago

If a category is access directly it works fine, however when pulling the categories from the Budget Detail endpoint the category.goal_type is mapped to the 'Note' endpoint.

In file Iynab_sdk/api/models/responses/budget_detail.py

Lines: 87 - 89

       goal_type = parsers.from_union(
            [parsers.from_str, parsers.from_none], obj.get("note")
        )
andreroggeri commented 2 years ago

Closed by #103