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
}
huaiyuWangh created
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(-)
@@ -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
}