-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Description
protobuf.js version: 5.0.3
message MessageWithRepeatedOption {
optional int32 value = 1 [(customized_option) = { in: [1, 2, 3] }];
}
We call it with pbjs.main
(command line API).
Error: Error: no such Type or Enum 'mmgameauthadminweb.AddSubAuthSetResponse' in Type .mmgameauthadmindbmq.AddSubAuthSetResponse
at Object.<anonymous> (/Users/littledu/WGFE/weadmin/backend/dist/helpers/apiManage/descGenerator.js:339:27)
at step (/Users/littledu/WGFE/weadmin/backend/dist/helpers/apiManage/descGenerator.js:43:23)
at Object.throw (/Users/littledu/WGFE/weadmin/backend/dist/helpers/apiManage/descGenerator.js:24:53)
at rejected (/Users/littledu/WGFE/weadmin/backend/dist/helpers/apiManage/descGenerator.js:16:65)
The stacktrace isn't very useful. But after deleted in: [1, 2, 3]
in .proto
file, everything worked Ok.
Related code: https://github.com/protobufjs/protobuf.js/blob/master/src/parse.js#L556-L577 . It seems that parser doesn't handle [
and ]
.
natiz and jamesthompson
Metadata
Metadata
Assignees
Labels
No labels