Re: [protobuf] Re: Dynamic message schema verification

2022-10-31 Thread 'Adam Cozzette' via Protocol Buffers
What you're trying to do should work in the sense that it will determine whether the message is parsable as the type given in the descriptor. However, you are correct that a message of one type can very often be parsed successfully as a completely different type. This is indeed by design, since thi

[protobuf] Re: Dynamic message schema verification

2022-10-28 Thread Idan Asulin
Didn't mention but I'm using the Go official library On Saturday, 29 October 2022 at 08:35:16 UTC+3 Idan Asulin wrote: > I'm trying to implement data contract logic. > I've 2 services switching messages with each other. > Service A send messages in some format + the file descriptor proto of the