From cd3918a80d39c2b5b0ad9d537ee74ed87205b220 Mon Sep 17 00:00:00 2001 From: Brady Holt Date: Tue, 1 Jul 2025 12:16:45 -0500 Subject: [PATCH] Allow empty string flag color on transactions --- docs/TransactionFlagColor.md | 2 ++ open_api_spec.yaml | 1 + ynab/models/transaction_flag_color.py | 1 + 3 files changed, 4 insertions(+) diff --git a/docs/TransactionFlagColor.md b/docs/TransactionFlagColor.md index 8165e9d..fda4583 100644 --- a/docs/TransactionFlagColor.md +++ b/docs/TransactionFlagColor.md @@ -16,6 +16,8 @@ The transaction flag * `PURPLE` (value: `'purple'`) +* `EMPTY` (value: `''`) + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/open_api_spec.yaml b/open_api_spec.yaml index 96580aa..ac623a7 100644 --- a/open_api_spec.yaml +++ b/open_api_spec.yaml @@ -3385,6 +3385,7 @@ components: - green - blue - purple + - "" - null nullable: true TransactionFlagName: diff --git a/ynab/models/transaction_flag_color.py b/ynab/models/transaction_flag_color.py index e64e78f..6d9e3e5 100644 --- a/ynab/models/transaction_flag_color.py +++ b/ynab/models/transaction_flag_color.py @@ -32,6 +32,7 @@ class TransactionFlagColor(str, Enum): GREEN = 'green' BLUE = 'blue' PURPLE = 'purple' + EMPTY = '' @classmethod def from_json(cls, json_str: str) -> Self: