From b06d2c4c0d7ae9f3afdd89f4b02f632230da58df Mon Sep 17 00:00:00 2001 From: Igor Matuszewski Date: Fri, 12 Jan 2018 14:56:10 +0100 Subject: [PATCH] Change message params types to match JSON-RPC spec Since the interface is supposed to describe message format to match [JSON-RPC spec](http://www.jsonrpc.org/specification), the params type must be specified as either `Array` or `Object`. From spec: > 4.2 Parameter Structures > > If present, parameters for the rpc call MUST be provided as a Structured value. Either by-position through an Array or by-name through an Object. --- specification.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/specification.md b/specification.md index 191fc2b..d97b26b 100644 --- a/specification.md +++ b/specification.md @@ -89,7 +89,7 @@ interface RequestMessage extends Message { /** * The method's params. */ - params?: any + params?: Array | object; } ``` @@ -164,7 +164,7 @@ interface NotificationMessage extends Message { /** * The notification's params. */ - params?: any + params?: Array | object; } ```