Skip to content

Commit cf6cf9e

Browse files
committed
remove batching vestiges
1 parent bb16bc8 commit cf6cf9e

File tree

3 files changed

+1
-75
lines changed

3 files changed

+1
-75
lines changed

docs/specification/draft/basic/lifecycle.mdx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,12 +72,6 @@ The client **MUST** initiate this phase by sending an `initialize` request conta
7272
}
7373
```
7474

75-
The initialize request **MUST NOT** be part of a JSON-RPC
76-
[batch](https://www.jsonrpc.org/specification#batch), as other requests and notifications
77-
are not possible until initialization has completed. This also permits backwards
78-
compatibility with prior protocol versions that do not explicitly support JSON-RPC
79-
batches.
80-
8175
The server **MUST** respond with its own capabilities and information:
8276

8377
```json

schema/draft/schema.json

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -835,34 +835,6 @@
835835
],
836836
"type": "object"
837837
},
838-
"JSONRPCBatchRequest": {
839-
"description": "A JSON-RPC batch request, as described in https://www.jsonrpc.org/specification#batch.",
840-
"items": {
841-
"anyOf": [
842-
{
843-
"$ref": "#/definitions/JSONRPCRequest"
844-
},
845-
{
846-
"$ref": "#/definitions/JSONRPCNotification"
847-
}
848-
]
849-
},
850-
"type": "array"
851-
},
852-
"JSONRPCBatchResponse": {
853-
"description": "A JSON-RPC batch response, as described in https://www.jsonrpc.org/specification#batch.",
854-
"items": {
855-
"anyOf": [
856-
{
857-
"$ref": "#/definitions/JSONRPCResponse"
858-
},
859-
{
860-
"$ref": "#/definitions/JSONRPCError"
861-
}
862-
]
863-
},
864-
"type": "array"
865-
},
866838
"JSONRPCError": {
867839
"description": "A response to a request that indicates an error occurred.",
868840
"properties": {
@@ -909,39 +881,11 @@
909881
{
910882
"$ref": "#/definitions/JSONRPCNotification"
911883
},
912-
{
913-
"description": "A JSON-RPC batch request, as described in https://www.jsonrpc.org/specification#batch.",
914-
"items": {
915-
"anyOf": [
916-
{
917-
"$ref": "#/definitions/JSONRPCRequest"
918-
},
919-
{
920-
"$ref": "#/definitions/JSONRPCNotification"
921-
}
922-
]
923-
},
924-
"type": "array"
925-
},
926884
{
927885
"$ref": "#/definitions/JSONRPCResponse"
928886
},
929887
{
930888
"$ref": "#/definitions/JSONRPCError"
931-
},
932-
{
933-
"description": "A JSON-RPC batch response, as described in https://www.jsonrpc.org/specification#batch.",
934-
"items": {
935-
"anyOf": [
936-
{
937-
"$ref": "#/definitions/JSONRPCResponse"
938-
},
939-
{
940-
"$ref": "#/definitions/JSONRPCError"
941-
}
942-
]
943-
},
944-
"type": "array"
945889
}
946890
],
947891
"description": "Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent."

schema/draft/schema.ts

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,8 @@
66
export type JSONRPCMessage =
77
| JSONRPCRequest
88
| JSONRPCNotification
9-
| JSONRPCBatchRequest
109
| JSONRPCResponse
11-
| JSONRPCError
12-
| JSONRPCBatchResponse;
13-
14-
/**
15-
* A JSON-RPC batch request, as described in https://www.jsonrpc.org/specification#batch.
16-
*/
17-
export type JSONRPCBatchRequest = (JSONRPCRequest | JSONRPCNotification)[];
18-
19-
/**
20-
* A JSON-RPC batch response, as described in https://www.jsonrpc.org/specification#batch.
21-
*/
22-
export type JSONRPCBatchResponse = (JSONRPCResponse | JSONRPCError)[];
10+
| JSONRPCError;
2311

2412
export const LATEST_PROTOCOL_VERSION = "DRAFT-2025-v2";
2513
export const JSONRPC_VERSION = "2.0";

0 commit comments

Comments
 (0)