You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
my project is using a Json that is not currently supported by entproto in the gen process.
My idea was to build a custom proto message in a separated proto file and import this file generated file in order to use something more type safe. The final ent code would looks like this:
field.
JSON("costs", map[string]interface{}{}).
Optional().
Comment(`
This includes brokerage fees, stock exchange fees and taxes. The costs
should be divided by 100 to get the real value, e.g. 1000 means R$ 10,00.
`).
Annotations(entproto.Field(
2,
entproto.Type(descriptorpb.FieldDescriptorProto_TYPE_MESSAGE),
entproto.TypeName("Cost"),
)),
lets say that my proto file that defines the Cost type is named cost.proto. How can I import cost.proto in the auto gen file in order to enable the type cost.Cost message to be recognized by the protoc command?
Thanks
The text was updated successfully, but these errors were encountered:
Hi,
my project is using a Json that is not currently supported by entproto in the gen process.
My idea was to build a custom proto message in a separated proto file and import this file generated file in order to use something more type safe. The final ent code would looks like this:
lets say that my proto file that defines the Cost type is named
cost.proto
. How can I importcost.proto
in the auto gen file in order to enable the type cost.Cost message to be recognized by theprotoc
command?Thanks
The text was updated successfully, but these errors were encountered: