From 5630f367d535ae7e97af569c5b945be0179d7b5e Mon Sep 17 00:00:00 2001 From: Brad Clement Date: Wed, 5 Jun 2024 17:45:39 -0700 Subject: [PATCH] Theresa's suggested fix for using type as directive name when name is empty --- src/aerie_cli/schemas/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aerie_cli/schemas/api.py b/src/aerie_cli/schemas/api.py index 5315003..dd94bef 100644 --- a/src/aerie_cli/schemas/api.py +++ b/src/aerie_cli/schemas/api.py @@ -67,7 +67,7 @@ class ActivityBase(ApiSerialize): converter = convert_to_time_delta ) metadata: Optional[Dict[str, str]] = field(factory=lambda: {}, kw_only=True) - name: Optional[str] = field(factory=lambda: "", kw_only=True) + name: Optional[str] = field(factory=lambda: None, kw_only=True) arguments: Optional[Dict[str, Any]] = field( factory=lambda: [], kw_only=True )