-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configuration.json
102 lines (102 loc) · 2.22 KB
/
configuration.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
90
91
92
93
94
95
96
97
98
99
100
101
102
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "urn:sourcemeta:registry/configuration.json",
"type": "object",
"required": [
"url",
"port",
"schemas"
],
"properties": {
"title": {
"$ref": "#/definitions/text"
},
"description": {
"$ref": "#/definitions/text"
},
"pages": {
"type": "object",
"minProperties": 1,
"propertyNames": {
"$ref": "#/definitions/entry-path"
},
"additionalProperties": {
"type": "object",
"minProperties": 1,
"properties": {
"title": {
"$ref": "#/definitions/text"
},
"description": {
"$ref": "#/definitions/text"
},
"email": {
"type": "string",
"pattern": "^[a-z0-9._+-]+@[a-z0-9.-]+\\.[a-z]{2,}$",
"format": "email"
},
"github": {
"type": "string",
"pattern": "^[a-z0-9-]+$"
},
"website": {
"$ref": "#/definitions/http-url"
}
},
"additionalProperties": false
}
},
"port": {
"type": "integer",
"minimum": 0
},
"schemas": {
"type": "object",
"minProperties": 1,
"propertyNames": {
"$ref": "#/definitions/entry-path"
},
"additionalProperties": {
"type": "object",
"required": [
"base",
"path"
],
"properties": {
"base": {
"type": "string",
"pattern": "^\\S.*\\S$",
"format": "uri",
"minLength": 1
},
"path": {
"type": "string",
"pattern": "^\\S.*\\S$",
"minLength": 1
}
},
"additionalProperties": false
}
},
"url": {
"$ref": "#/definitions/http-url"
}
},
"additionalProperties": false,
"definitions": {
"entry-path": {
"type": "string",
"pattern": "^[a-z0-9][a-z0-9-/]*$"
},
"http-url": {
"type": "string",
"pattern": "^https?:\\/\\/[a-z0-9-.:/]+$",
"format": "url"
},
"text": {
"type": "string",
"pattern": "^\\S.*\\S$",
"minLength": 1
}
}
}