From 04e2ca24d5c39430b1901a31d96538eef6ae5af7 Mon Sep 17 00:00:00 2001 From: Sasha Melentyev Date: Tue, 2 Apr 2024 20:06:15 +0300 Subject: [PATCH] fix: fix lint issue Signed-off-by: Sasha Melentyev --- internal/gen/generator.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/gen/generator.go b/internal/gen/generator.go index c746231..41a0b3b 100644 --- a/internal/gen/generator.go +++ b/internal/gen/generator.go @@ -324,9 +324,9 @@ func (g *Generator) mkQueryParameters(op *ogen.Operation, fields map[string]*pro continue } case protoreflect.EnumKind: - name := descriptorName(fd.Enum()) + descName := descriptorName(fd.Enum()) s := mkEnumOgenSchema(fd.Enum()) - g.spec.AddSchema(name, s) + g.spec.AddSchema(descName, s) case protoreflect.GroupKind: return errors.Errorf("unsupported kind: %s", kind) }