File tree Expand file tree Collapse file tree 3 files changed +1
-75
lines changed
docs/specification/draft/basic Expand file tree Collapse file tree 3 files changed +1
-75
lines changed Original file line number Diff line number Diff line change @@ -72,12 +72,6 @@ The client **MUST** initiate this phase by sending an `initialize` request conta
72
72
}
73
73
```
74
74
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
-
81
75
The server ** MUST** respond with its own capabilities and information:
82
76
83
77
``` json
Original file line number Diff line number Diff line change 835
835
],
836
836
"type" : " object"
837
837
},
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
- },
866
838
"JSONRPCError" : {
867
839
"description" : " A response to a request that indicates an error occurred." ,
868
840
"properties" : {
909
881
{
910
882
"$ref" : " #/definitions/JSONRPCNotification"
911
883
},
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
- },
926
884
{
927
885
"$ref" : " #/definitions/JSONRPCResponse"
928
886
},
929
887
{
930
888
"$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"
945
889
}
946
890
],
947
891
"description" : " Refers to any valid JSON-RPC object that can be decoded off the wire, or encoded to be sent."
Original file line number Diff line number Diff line change 6
6
export type JSONRPCMessage =
7
7
| JSONRPCRequest
8
8
| JSONRPCNotification
9
- | JSONRPCBatchRequest
10
9
| 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 ;
23
11
24
12
export const LATEST_PROTOCOL_VERSION = "DRAFT-2025-v2" ;
25
13
export const JSONRPC_VERSION = "2.0" ;
You can’t perform that action at this time.
0 commit comments