From 2ef2131d4f2a03fd97c6b088f1b5c8367f626452 Mon Sep 17 00:00:00 2001 From: Jared O'Connell Date: Tue, 10 Dec 2024 12:23:59 -0500 Subject: [PATCH] Update error message for any type --- schema/any.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schema/any.go b/schema/any.go index ae68325..54d13a5 100644 --- a/schema/any.go +++ b/schema/any.go @@ -75,7 +75,7 @@ func (a *AnySchema) ValidateCompatibility(typeOrData any) error { default: // It's not an any schema or a type compatible with an any schema, so error return &ConstraintError{ - Message: fmt.Sprintf("unsupported schema type for 'any' type: %T", typeOrData), + Message: fmt.Sprintf("schema type `%T` cannot be used as an input for an 'any' type", typeOrData), } } return nil