-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
56 lines (55 loc) · 1.66 KB
/
Copy pathschema.json
File metadata and controls
56 lines (55 loc) · 1.66 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://example.test/openrpc-minimal",
"title": "OpenRPC (minimal subset for tests)",
"type": "object",
"additionalProperties": true,
"required": ["openrpc", "info", "methods"],
"properties": {
"openrpc": { "type": "string", "minLength": 1 },
"info": {
"type": "object",
"additionalProperties": true,
"required": ["title", "version"],
"properties": {
"title": { "type": "string" },
"version": { "type": "string" },
"description": { "type": "string" },
"termsOfService": { "type": "string" }
}
},
"methods": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"required": ["name", "params"],
"properties": {
"name": { "type": "string", "minLength": 1 },
"summary": { "type": "string" },
"description": { "type": "string" },
"params": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true,
"required": ["name"],
"properties": {
"name": { "type": "string", "minLength": 1 },
"schema": { "type": "object" }
}
}
},
"examples": { "type": "array" },
"errors": { "type": "array" },
"links": { "type": "array" },
"tags": { "type": "array" }
}
}
},
"servers": { "type": "array" },
"components": { "type": "object" },
"externalDocs": { "type": "object" },
"$schema": { "type": "string" }
}
}