From 9c8162036ed3e95b400911fd9071df06ac4ca3d4 Mon Sep 17 00:00:00 2001 From: Stevan Freeborn <65925598+StevanFreeborn@users.noreply.github.com> Date: Sun, 30 Jun 2024 13:56:52 -0500 Subject: [PATCH] fix: add string enum converter to serialization options --- src/AnthropicClient/Json/JsonSerializationOptions.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/AnthropicClient/Json/JsonSerializationOptions.cs b/src/AnthropicClient/Json/JsonSerializationOptions.cs index fd90328..6e9dece 100644 --- a/src/AnthropicClient/Json/JsonSerializationOptions.cs +++ b/src/AnthropicClient/Json/JsonSerializationOptions.cs @@ -16,6 +16,7 @@ static class JsonSerializationOptions new ErrorConverter(), new EventDataConverter(), new ContentDeltaConverter(), + new JsonStringEnumConverter(), }, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull, };