From 466039dec07c57ace58413aec1e59a6288aa6317 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lovro=20Ma=C5=BEgon?= Date: Tue, 6 Aug 2024 12:41:23 +0200 Subject: [PATCH] fix example name --- .../processor/builtin/impl/field/convert_examples_test.go | 2 +- .../builtin/internal/exampleutil/specs/field.convert.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/plugin/processor/builtin/impl/field/convert_examples_test.go b/pkg/plugin/processor/builtin/impl/field/convert_examples_test.go index 4a6b239eb..f45483e3f 100644 --- a/pkg/plugin/processor/builtin/impl/field/convert_examples_test.go +++ b/pkg/plugin/processor/builtin/impl/field/convert_examples_test.go @@ -154,7 +154,7 @@ func ExampleConvertProcessor_intTotime() { timeObj := time.Date(2024, 1, 2, 12, 34, 56, 123456789, time.UTC) exampleutil.RunExample(p, exampleutil.Example{ - Summary: "Convert `string` to `time`", + Summary: "Convert `int` to `time`", Description: "This example takes an `int` in field `.Payload.After.createdAt` and parses it as a unix timestamp into a `time.Time` value.", Config: config.Config{"field": ".Payload.After.createdAt", "type": "time"}, Have: opencdc.Record{ diff --git a/pkg/plugin/processor/builtin/internal/exampleutil/specs/field.convert.json b/pkg/plugin/processor/builtin/internal/exampleutil/specs/field.convert.json index 09ea7749f..7f28d60f3 100644 --- a/pkg/plugin/processor/builtin/internal/exampleutil/specs/field.convert.json +++ b/pkg/plugin/processor/builtin/internal/exampleutil/specs/field.convert.json @@ -40,7 +40,7 @@ }, "examples": [ { - "summary": "Convert `string` to `time`", + "summary": "Convert `int` to `time`", "description": "This example takes an `int` in field `.Payload.After.createdAt` and parses it as a unix timestamp into a `time.Time` value.", "config": { "field": ".Payload.After.createdAt",