We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In the examples, GreetRequest is a simple struct with a single Name field. I was expecting to send the request as an object
GreetRequest
Name
{ "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
The text was updated successfully, but these errors were encountered:
No branches or pull requests
In the examples,
GreetRequest
is a simple struct with a singleName
field. I was expecting to send the request as an objectBut I get the error:
If I send it as an array its fine. Is the expected behaviour of the decoder to assume an array of objects?
https://github.com/machinebox/remoto/blob/master/examples/greeter/server/greeter/server.go#L90
The text was updated successfully, but these errors were encountered: