Codebase list golang-github-go-kit-kit / 27fdbad
JSON-RPC empty error parameter not omitted in encoding (#728) Bas van Beek 5 years ago
2 changed file(s) with 2 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
8686
8787 {
8888 "jsonrpc": "2.0",
89 "result": 4,
90 "error": null
89 "result": 4
9190 }
5757 type Response struct {
5858 JSONRPC string `json:"jsonrpc"`
5959 Result json.RawMessage `json:"result,omitempty"`
60 Error *Error `json:"error,omitemty"`
60 Error *Error `json:"error,omitempty"`
6161 }
6262
6363 const (