Skip to content

Commit

Permalink
Change so generic data sink uses case insensitive property names (#345)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulimo authored Jan 31, 2024
1 parent 097ab74 commit 3bb71bd
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ private async IAsyncEnumerable<FlowtideGenericWriteObject<T>> ChangesToGeneric(I
using var memoryStream = new MemoryStream();
streamEventToJson.Write(memoryStream, row.Row);
memoryStream.Position = 0;
var obj = JsonSerializer.Deserialize<T>(memoryStream);
var obj = JsonSerializer.Deserialize<T>(memoryStream, new JsonSerializerOptions()
{
PropertyNameCaseInsensitive = true
});
if (obj == null)
{
throw new InvalidOperationException("Could not convert row to generic object");
Expand Down

0 comments on commit 3bb71bd

Please sign in to comment.