I use proto3 to generate api, my proto3 looks like
<code>message CreateSRPolicyDataRequest {
repeated Path idc_paths = 1;
}
message Path {
repeated string path = 1;
}
</code>
<code>message CreateSRPolicyDataRequest {
repeated Path idc_paths = 1;
}
message Path {
repeated string path = 1;
}
</code>
message CreateSRPolicyDataRequest {
repeated Path idc_paths = 1;
}
message Path {
repeated string path = 1;
}
and it turns out
<code> "idc_paths": [
{
"path": [
""
]
}
]
</code>
<code> "idc_paths": [
{
"path": [
""
]
}
]
</code>
"idc_paths": [
{
"path": [
""
]
}
]
but I need
<code>"idc_paths": [
[
""
]
]
</code>
<code>"idc_paths": [
[
""
]
]
</code>
"idc_paths": [
[
""
]
]
how to fix my proto defination?
[packed=true] does not work for string