-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
65 lines (65 loc) · 1.78 KB
/
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
{
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Schema for \"Open Search Tags\" definition file",
"definitions": {
"alias": {
"properties": {
"type": { "enum": [ "alias" ] },
"reference": {
"type": "string",
"pattern": "^[a-z0-9]+$"
}
},
"required": [ "type", "reference" ],
"additionalProperties": false
},
"description": {
"properties": {
"type": { "enum": [ "description" ] },
"name": {
"type": "string",
"description": "Name of the specific search provider."
},
"searchUrls": {
"type": "object",
"description": "A list of URLs which must be assigned to a locale. Use \"en\" (English) as a default. Use \"{{s}}\" as placeholder",
"patternProperties": {
"^[a-z]{2}(_[A-Z]{2})?$": {
"type": "string"
}
},
"additionalProperties": false
}
},
"required": [ "type", "name" ],
"additionalProperties": false
}
},
"type": "object",
"properties": {
"title": {
"type": "string",
"description": "Describe your OpenBang definition file"
},
"description": {
"type": "string",
"description": "Add an optional description to your OpenBang definition file"
},
"items": {
"type": "object",
"description": "Configure your available OpenBangs",
"patternProperties": {
"^[a-z0-9]{1,20}$": {
"type": "object",
"oneOf": [
{ "$ref": "#/definitions/alias" },
{ "$ref": "#/definitions/description" }
]
}
},
"additionalProperties": false
}
},
"required": [ "title", "items" ],
"additionalProperties": false
}