Browse Source

ID must be present in both request and response

from the spec:
This member is REQUIRED.
It MUST be the same as the value of the id member in the Request Object.
If there was an error in detecting the id in the Request object (e.g. Parse error/Invalid Request), it MUST be Null.
pull/521/head
Anton Kaliaev 7 years ago
committed by Ethan Buchman
parent
commit
95875c55fc
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      rpc/lib/types/types.go

+ 1
- 1
rpc/lib/types/types.go View File

@ -62,7 +62,7 @@ type RPCError struct {
type RPCResponse struct {
JSONRPC string `json:"jsonrpc"`
ID string `json:"id,omitempty"`
ID string `json:"id"`
Result *json.RawMessage `json:"result,omitempty"`
Error *RPCError `json:"error,omitempty"`
}


Loading…
Cancel
Save