Set defaults to false for loader definitions

There isn't much value in having defaults set for descriptors

What's more it causes issues when using those descriptors with protobufjs

Descriptors with oneofIndex: 0, cause issues when they aren't part of a oneof
This commit is contained in:
Rich Beddington 2021-07-30 15:04:27 +01:00
parent ba24f18bb2
commit 8968bf8289
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ const descriptorOptions: Protobuf.IConversionOptions = {
longs: String,
enums: String,
bytes: String,
defaults: true,
defaults: false,
oneofs: true,
json: true,
};