Gateway does not parse oneof types correctly when using camelCase #1113
Closed
Description
Enums like
message GetRolesRequest {
oneof get {
// roles's project
string project_id = 4;
// cluster roles
bool cluster = 5;
}
}
will not be parsed correctly through the gateway with the camelCase
flag. project_id
succeeds but projectId
does not.
The issue looks to be here :
Lines 120 to 128 in 7f57073
There's a map of oneof
s that we loop over, however they key of the map is the name with the underscore, so given a camelCase param, it will never find it.