Protoman icon indicating copy to clipboard operation
Protoman copied to clipboard

Optional fields are filled with default empty values

Open ulshv opened this issue 3 years ago • 3 comments

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.

ulshv avatar Nov 23 '21 21:11 ulshv

Having this issue as well!

toly-pepperstone avatar Jun 14 '22 12:06 toly-pepperstone

Having this issue as well))))

Ferum-bot avatar Jul 04 '22 10:07 Ferum-bot

Same issue here. Is there any way to omit a field from the payload instead of sending empty string?

josuerzslzr avatar Jun 06 '23 19:06 josuerzslzr