Skip to content

Commit

Permalink
Merge pull request #15268 from r-vasquez/use-full-name
Browse files Browse the repository at this point in the history
rpk/serde: use fullName for proto decoding.
  • Loading branch information
r-vasquez authored Dec 1, 2023
2 parents bdaf460 + 52191d9 commit e13b847
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/go/rpk/pkg/serde/serde.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func NewSerde(ctx context.Context, cl *sr.Client, schema *sr.Schema, schemaID in
// If the proto FQN is not provided, but we only have one message, we
// use that.
if protoFQN == "" && compiled.FindFileByPath(inMemFileName).Messages().Len() == 1 {
protoFQN = string(compiled.FindFileByPath(inMemFileName).Messages().Get(0).Name())
protoFQN = string(compiled.FindFileByPath(inMemFileName).Messages().Get(0).FullName())
}
var encFn serdeFunc
// If there is no FQN, most likely we are trying to decode only.
Expand Down

0 comments on commit e13b847

Please sign in to comment.