From 664aae78f8d04e594d4e846f26f143da46e2d0e8 Mon Sep 17 00:00:00 2001 From: huaiyuWangh <34158348+huaiyuWangh@users.noreply.github.com> Date: Mon, 30 Mar 2026 20:43:34 +0800 Subject: [PATCH] fix(csync): use pointer receiver for JSONSchemaAlias (#2521) Change JSONSchemaAlias receiver from value to pointer for consistency with other Map methods that use pointer receivers for interface satisfaction. --- internal/csync/maps.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/csync/maps.go b/internal/csync/maps.go index d5856db463194f4aefc02794194992e7bb99a7ce..df63dc8bd385982133d97c446d26c4333c1f0797 100644 --- a/internal/csync/maps.go +++ b/internal/csync/maps.go @@ -131,7 +131,7 @@ var ( _ json.Marshaler = &Map[string, any]{} ) -func (Map[K, V]) JSONSchemaAlias() any { //nolint +func (*Map[K, V]) JSONSchemaAlias() any { m := map[K]V{} return m }