You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Same response returned even when encoding is not specified.
The specification tells that If the client does not specify the encoding in an RPC message, it MUST send JSON encoded values (the default encoding). So I would expect to get at least json_val also when no encoding was specified.
Or did I understand it wrong? Please correct me if so.
The text was updated successfully, but these errors were encountered:
Hi,
1. I have problem to set leaf node with with json_val.
sending update request:
returns error:
INTERNAL: cannot convert leaf node to scalar type: non-scalar type &{JsonVal:[100 111 109 97 105 110 45 110 97 109 101 46 99 111 109]}
The specification tells that the value node should be encoded by
oneof
the scalar types or structural types ... .Also in the 2.3.1 JSON and JSON_IETF there is example how
string
oruint32
leaf-node
can be serialized.So I think the server should be able to apply also scalar type
but also JSON type
2. Also the server does not return json_val for leaf-nodes.
When the encoding is explicitly specified in get request:
It returns val as
string_val
. I would expectjson_val
.Same response returned even when encoding is not specified.
The specification tells that
If the client does not specify the encoding in an RPC message, it MUST send JSON encoded values (the default encoding)
. So I would expect to get at leastjson_val
also when no encoding was specified.Or did I understand it wrong? Please correct me if so.
The text was updated successfully, but these errors were encountered: