fix(csync): use pointer receiver for JSONSchemaAlias (#2521)

huaiyuWangh created

Change JSONSchemaAlias receiver from value to pointer for consistency
with other Map methods that use pointer receivers for interface
satisfaction.

Change summary

internal/csync/maps.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Detailed changes

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
 }