-
Notifications
You must be signed in to change notification settings - Fork 1
/
meta-schema.json
89 lines (89 loc) · 2.61 KB
/
meta-schema.json
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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
{
"$schema": "https://meta.json-schema.tools/",
"title": "OpenRPC Specification Extension",
"description": "A standard way to define OpenRPC Specification Extensions. This makes it easier to provide support for Specification Extensions in other tools.",
"type": "object",
"required": [
"name",
"schema",
"openrpcExtension",
"version"
],
"properties": {
"openrpcExtension": {
"title": "openrpcExtensionVersion",
"description": "**REQUIRED**. This string MUST be the semantic version number of the Specification that the document uses.",
"type": "string",
"enum": [
"0.0.0-development"
]
},
"name": {
"title": "specificationExtensionName",
"description": "**REQUIRED** Name of the Specification Extension. MUST start with `x-`",
"type": "string",
"pattern": "^x-",
"examples": [
"x-foobarbaz"
]
},
"version": {
"title": "specificationExtensionVersion",
"description": "**REQUIRED**. The version of the Extension (which is distinct from the `openrpcExtension` version and implementation version).",
"type": "string",
"examples": [
"0.0.1"
]
},
"required": {
"title": "specificationExtensionRequired",
"type": "boolean",
"description": "wether or not this specification extension is required or not"
},
"restricted": {
"title": "restrictedObjects",
"description": "A list of object names to restrict the usage of the specification extension to.",
"type": "array",
"items": {
"title": "restrictedObject",
"description": "restricted object",
"type": "string"
}
},
"description": {
"title": "specificationExtensionDescription",
"type": "string",
"description": "Markdown description describing the specification extension."
},
"summary": {
"title": "specificationExtensionSummary",
"type": "string",
"description": "A short summary of what the specification extension is."
},
"schema": {
"$ref": "https://meta.json-schema.tools"
},
"externalDocumentation": {
"title": "specificationExtensionExternalDocumentationObject",
"type": "object",
"additionalProperties": false,
"description": "Information about specification extension external documentation.",
"required": [
"url"
],
"properties": {
"description": {
"title": "specificationExtensionexternalDocumentationObjectDescription",
"description": "external documentation description.",
"type": "string"
},
"url": {
"title": "specificationExtensionexternalDocumentationObjectUrl",
"description": "external documentation description.",
"type": "string",
"format": "uri"
}
}
}
}
}