返回 CodeWhale
JSONRPCRequest.json
根目录 / crates / app-server-protocol / tests / pinned / JSONRPCRequest.json
1 {
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "definitions": {
4 "RequestId": {
5 "anyOf": [
6 {
7 "type": "string"
8 },
9 {
10 "format": "int64",
11 "type": "integer"
12 }
13 ]
14 },
15 "W3cTraceContext": {
16 "properties": {
17 "traceparent": {
18 "type": [
19 "string",
20 "null"
21 ]
22 },
23 "tracestate": {
24 "type": [
25 "string",
26 "null"
27 ]
28 }
29 },
30 "type": "object"
31 }
32 },
33 "description": "A request that expects a response.",
34 "properties": {
35 "id": {
36 "$ref": "#/definitions/RequestId"
37 },
38 "method": {
39 "type": "string"
40 },
41 "params": true,
42 "trace": {
43 "anyOf": [
44 {
45 "$ref": "#/definitions/W3cTraceContext"
46 },
47 {
48 "type": "null"
49 }
50 ],
51 "description": "Optional W3C Trace Context for distributed tracing."
52 }
53 },
54 "required": [
55 "id",
56 "method"
57 ],
58 "title": "JSONRPCRequest",
59 "type": "object"
60 }
60 lines JSON