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
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-
8175The server ** MUST** respond with its own capabilities and information:
8276
8377``` json
Original file line number Diff line number Diff line change 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" : {
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."
Original file line number Diff line number Diff line change 66export 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
2412export const LATEST_PROTOCOL_VERSION = "DRAFT-2025-v2" ;
2513export const JSONRPC_VERSION = "2.0" ;
You can’t perform that action at this time.
0 commit comments