diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b5f430..8b0c447 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.4.0](https://github.com/open-rpc/spec/compare/1.3.2...1.4.0) (2025-06-20) + + +### Features + +* add `streaming` field to Method Object allowing multiple results for the same request ID + ## [1.3.2](https://github.com/open-rpc/spec/compare/1.3.1...1.3.2) (2023-07-04) diff --git a/package-lock.json b/package-lock.json index 96f43c5..7d0e6e0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "open-rpc-spec", - "version": "1.3.2", + "version": "1.4.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "open-rpc-spec", - "version": "1.3.2", + "version": "1.4.0", "license": "Apache-2.0", "devDependencies": { "@etclabscore/dl-github-releases": "^1.2.1", diff --git a/package.json b/package.json index 62385b2..94864e9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "open-rpc-spec", - "version": "1.3.2", + "version": "1.4.0", "description": "The OPEN-RPC Specification", "main": "index.js", "private": true, diff --git a/spec.md b/spec.md index d6ddd9e..5911ff5 100644 --- a/spec.md +++ b/spec.md @@ -194,6 +194,7 @@ Field Name | Type | Description externalDocs | [External Documentation Object](#external-documentation-object) | Additional external documentation for this method. params | [[Content Descriptor](#content-descriptor-object) \| [Reference Object](#reference-object)] | **REQUIRED**. A list of parameters that are applicable for this method. The list MUST NOT include duplicated parameters and therefore require [name](#content-descriptor-name) to be unique. The list can use the [Reference Object](#reference-object) to link to parameters that are defined by the [Content Descriptor Object](#content-descriptor-object). All optional params (content descriptor objects with "required": false) MUST be positioned after all required params in the list. result | [Content Descriptor](#content-descriptor-object) \| [Reference Object](#reference-object) | The description of the result returned by the method. If defined, it MUST be a Content Descriptor or Reference Object. If undefined, the method MUST only be used as a [notification](https://www.jsonrpc.org/specification#notification). +streaming | `boolean` | Indicates that this method MAY return multiple results for a single request. When `true`, each result MUST share the same `id` as the original request. Default value is `false`. deprecated | `boolean` | Declares this method to be deprecated. Consumers SHOULD refrain from usage of the declared method. Default value is `false`. servers | [[Server Object](#server-object)] | An alternative `servers` array to service this method. If an alternative `servers` array is specified at the Root level, it will be overridden by this value. errors | [[Error Object](#error-object) \| [Reference Object](#reference-object)] | A list of custom application defined errors that MAY be returned. The Errors MUST have unique error codes.