-
-
Notifications
You must be signed in to change notification settings - Fork 149
Open
Labels
Description
When messages are defined as below, the parser failed to resolve t1.i1 type.
package mypackage;
message t1 {
message i1 {
optional uint32 x = 1;
optional uint32 y = 2;
}
}
message t2 {
optional t1.i1 z = 1;
}
Error
Exception in thread "main" java.lang.IllegalArgumentException: Unknown protobuf field type 't1.i1' for field 'z' of MessageType 't2' (known enum types: ; known message types: t1, t2)
at com.fasterxml.jackson.dataformat.protobuf.schema.TypeResolver._resolve(TypeResolver.java:141)
at com.fasterxml.jackson.dataformat.protobuf.schema.TypeResolver.resolve(TypeResolver.java:93)
at com.fasterxml.jackson.dataformat.protobuf.schema.NativeProtobufSchema.forType(NativeProtobufSchema.java:67)
at com.fasterxml.jackson.dataformat.protobuf.schema.ProtobufSchemaLoader.load(ProtobufSchemaLoader.java:51)