Skip to content

Commit afbd0ff

Browse files
authored
Merge pull request #9 from ynab/empty-flag-name
Allow empty string flag color on transactions
2 parents 8d1f25c + cd3918a commit afbd0ff

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

docs/TransactionFlagColor.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ The transaction flag
1616

1717
* `PURPLE` (value: `'purple'`)
1818

19+
* `EMPTY` (value: `''`)
20+
1921
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
2022

2123

open_api_spec.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3385,6 +3385,7 @@ components:
33853385
- green
33863386
- blue
33873387
- purple
3388+
- ""
33883389
- null
33893390
nullable: true
33903391
TransactionFlagName:

ynab/models/transaction_flag_color.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class TransactionFlagColor(str, Enum):
3232
GREEN = 'green'
3333
BLUE = 'blue'
3434
PURPLE = 'purple'
35+
EMPTY = ''
3536

3637
@classmethod
3738
def from_json(cls, json_str: str) -> Self:

0 commit comments

Comments
 (0)