protobuf.js version: 6.6.3
I'm working on upgrading our pbjs from 5.x to 6.x.
The code is a lot easier to use and I was able to remove quite a bit of custom wrapper code.
So far I ran into 2 issues:
verify works sometimes. It seems to fail silently, even if I pass "junk" in
const rootNamespace = protobuf.Root.fromJSON(pbJson);
const pbDef = rootNamespace.looup('Pb.MyDef');
const verifyResult = pbDef[pbClassName].verify(123);
if (verifyResult) {
throw new Error(verifyResult);
}
- When decoding, I can specify
{ enums: String } which is great, but when encoding enums can be specified only by integer. Is there a plan to re-introduce support for encoding enum strings?
Thank you @dcodeIO for all the great work.
protobuf.js version: 6.6.3
I'm working on upgrading our pbjs from 5.x to 6.x.
The code is a lot easier to use and I was able to remove quite a bit of custom wrapper code.
So far I ran into 2 issues:
verifyworks sometimes. It seems to fail silently, even if I pass "junk" in{ enums: String }which is great, but when encodingenumscan be specified only byinteger. Is there a plan to re-introduce support for encodingenumstrings?Thank you @dcodeIO for all the great work.