From 858740f96e864f3d0e162a0500b37d1e108c0335 Mon Sep 17 00:00:00 2001 From: Luke Young <91491244+lyoung-confluent@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:27:41 -0700 Subject: [PATCH 1/2] Update convert.go --- pkg/converter/convert.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkg/converter/convert.go b/pkg/converter/convert.go index 67d0f5f..1643c37 100644 --- a/pkg/converter/convert.go +++ b/pkg/converter/convert.go @@ -170,6 +170,10 @@ func convertField( } } + if len(field.Description) > 1024 { + field.Description = field.Description[:1024] + } + if field.Type != "RECORD" { return field, nil } From b9267a7ca9a6dbd5589276825fb30d62e9d49c97 Mon Sep 17 00:00:00 2001 From: Luke Young <91491244+lyoung-confluent@users.noreply.github.com> Date: Wed, 20 Mar 2024 16:29:23 -0700 Subject: [PATCH 2/2] Update convert.go --- pkg/converter/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/converter/convert.go b/pkg/converter/convert.go index 1643c37..cc9aec5 100644 --- a/pkg/converter/convert.go +++ b/pkg/converter/convert.go @@ -171,7 +171,7 @@ func convertField( } if len(field.Description) > 1024 { - field.Description = field.Description[:1024] + field.Description = field.Description[:1021] + "..." } if field.Type != "RECORD" {