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.
commit664aae78f8d04e594d4e846f26f143da46e2d0e8
authorhuaiyuWangh <34158348+huaiyuWangh@users.noreply.github.com>
dateMon 30 Mar 2026, 20:43 (7 months ago)
parent1e96467
internal/csync/maps.go+1−1
@@ -131,7 +131,7 @@ var (
131131 _ json.Marshaler = &Map[string, any]{}
132132)
133133
134−func (Map[K, V]) JSONSchemaAlias() any { //nolint
134+func (*Map[K, V]) JSONSchemaAlias() any {
135135 m := map[K]V{}
136136 return m
137137}