remove a mistake from specification

This commit is contained in:
2025-08-07 15:46:27 +03:00
parent 2889092821
commit 2b38e179db

View File

@@ -32,7 +32,7 @@ func (h *HandlerV1) Handle(_ context.Context, sid string, r *http.Request, req *
// https://www.jsonrpc.org/specification#parameter_structures // https://www.jsonrpc.org/specification#parameter_structures
// //
// "params" MUST be either an *array* or an *object* if included. // "params" MUST be either an *array* or an *object* if included.
// Any other type (e.g., a number, string, null, or boolean) is INVALID. // Any other type (e.g., a number, string, or boolean) is INVALID.
h.x.SLog.Info("invalid request received", slog.String("issue", rpc.ErrInvalidParamsS)) h.x.SLog.Info("invalid request received", slog.String("issue", rpc.ErrInvalidParamsS))
return rpc.NewError(rpc.ErrInvalidParams, rpc.ErrInvalidParamsS, nil, req.ID) return rpc.NewError(rpc.ErrInvalidParams, rpc.ErrInvalidParamsS, nil, req.ID)
} }