Protoman
Protoman copied to clipboard
Optional fields are filled with default empty values
Let's say we have the following schema:
message UpdatePostPayload {
optional string title = 1;
optional string content = 2;
optional string cover = 3;
}
The request message form will include this fields and when it's sent and parsed on the server this fields will exists with default empty values (empty strings in this example). It would be nice to be able to have checkbox or someting to specify which optional fields should be used or not. So when optional field doesn't have any value and it's unchecked (i.e. "don't use this field") - we will not get this empty values on the server.
Having this issue as well!
Having this issue as well))))
Same issue here. Is there any way to omit a field from the payload instead of sending empty string?