api build works for conda now

This commit is contained in:
Ashwin Bharambe 2024-08-27 21:40:43 -07:00
parent c4fe72c3a3
commit 2076d2b6db
5 changed files with 28 additions and 15 deletions

View file

@ -5,6 +5,7 @@
# the root directory of this source tree.
import json
from datetime import datetime
from enum import Enum
@ -12,4 +13,6 @@ class EnumEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, Enum):
return obj.value
elif isinstance(obj, datetime):
return obj.isoformat()
return super().default(obj)