-
Notifications
You must be signed in to change notification settings - Fork 12
Open
Description
In the examples, GreetRequest
is a simple struct with a single Name
field. I was expecting to send the request as an object
{ "name": "mike" }
But I get the error:
decode json: json: cannot unmarshal object into Go value of type []*simplyProjected.SimpleRequest
If I send it as an array its fine. Is the expected behaviour of the decoder to assume an array of objects?
[{ "name": "mike" }]
https://github.com/machinebox/remoto/blob/master/examples/greeter/server/greeter/server.go#L90
Metadata
Metadata
Assignees
Labels
No labels