From 29637dad2a98e1c28324dd6cce1dff51c943eacf Mon Sep 17 00:00:00 2001 From: "Gerasimos (Makis) Maropoulos" Date: Fri, 25 Aug 2023 11:45:54 +0300 Subject: [PATCH] minor --- x/jsonx/exampler.go | 2 +- x/jsonx/iso8601.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/jsonx/exampler.go b/x/jsonx/exampler.go index 006a133c..ef492ed7 100644 --- a/x/jsonx/exampler.go +++ b/x/jsonx/exampler.go @@ -2,5 +2,5 @@ package jsonx // Exampler is an interface used by testing to generate examples. type Exampler interface { - ListExamples() []string + ListExamples() any } diff --git a/x/jsonx/iso8601.go b/x/jsonx/iso8601.go index f43bfb24..1eec29ab 100644 --- a/x/jsonx/iso8601.go +++ b/x/jsonx/iso8601.go @@ -116,7 +116,7 @@ func (t ISO8601) MarshalJSON() ([]byte, error) { } // Examples returns a list of example values. -func (t ISO8601) ListExamples() []string { +func (t ISO8601) ListExamples() any { return []string{ "2006-01-02T15:04:05", "2022-08-09T00:00:00.000000",