Skip to content

Commit

Permalink
fix: fix lint issue
Browse files Browse the repository at this point in the history
Signed-off-by: Sasha Melentyev <[email protected]>
  • Loading branch information
sashamelentyev committed Apr 2, 2024
1 parent 23ee0ba commit 04e2ca2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/gen/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 04e2ca2

Please sign in to comment.