Skip to content

Commit

Permalink
Merge pull request #44 from lyoung-confluent/patch-1
Browse files Browse the repository at this point in the history
Truncate description if more than 1024 characters
  • Loading branch information
mescanne authored Mar 22, 2024
2 parents e994945 + b9267a7 commit 31a7e43
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/converter/convert.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ func convertField(
}
}

if len(field.Description) > 1024 {
field.Description = field.Description[:1021] + "..."
}

if field.Type != "RECORD" {
return field, nil
}
Expand Down

0 comments on commit 31a7e43

Please sign in to comment.