Nested message produces different proto schema than the one from compiled .proto file #340
Labels
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: bug
Error or flaw in code with unintended results or allowing sub-optimal usage patterns.
The message built with
proto-plus
package produces slightly different proto schema. The difference is that._default_package
is added to the nested field's type_name.It causes an error when trying to use that schema to write to GCP BigQuery's Storage API:
400 Invalid proto schema: BqMessage.proto: UserSchema.team: "._default_package.UserSchema.Team" is not defined
Environment details
Steps to reproduce
type_name: "._default_package.UserSchema.Team"
from proto.Message class andtype_name: ".UserSchema.Team"
from compiled .proto fileThe text was updated successfully, but these errors were encountered: