From 44501aa802cd591c091f58c562a0162514b8e901 Mon Sep 17 00:00:00 2001 From: Robin Tang Date: Wed, 11 Dec 2024 21:48:55 -0800 Subject: [PATCH] omitempty. --- lib/debezium/schema.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/debezium/schema.go b/lib/debezium/schema.go index 58348285..a36a5e6d 100644 --- a/lib/debezium/schema.go +++ b/lib/debezium/schema.go @@ -67,7 +67,7 @@ type Field struct { DebeziumType SupportedDebeziumType `json:"name"` Parameters map[string]any `json:"parameters"` // [ItemsMetadata] is only populated if the literal type is an array. - ItemsMetadata *Item `json:"items"` + ItemsMetadata *Item `json:"items,omitempty"` } func (f Field) GetScaleAndPrecision() (int32, *int32, error) {