-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjsbits.schema.json
65 lines (65 loc) · 1.71 KB
/
jsbits.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
{
"title": "JSON schema for JSBits modules information",
"definitions": {
"person": {
"description": "A person who has been involved in creating or maintaining this package",
"type": [ "object", "string" ],
"required": [ "name" ],
"properties": {
"name": {
"type": "string"
},
"url": {
"type": "string",
"format": "uri"
},
"email": {
"type": "string",
"format": "email"
}
}
}
},
"required": [
"_VERSION",
"_DESCRIPTION",
"_GROUPS"
],
"properties": {
"_VERSION": {
"description": "Version must be parseable by node-semver, which is bundled with npm as a dependency.",
"type": "string"
},
"_DESCRIPTION": {
"description": "This helps people discover your package, as it's listed in 'npm search'.",
"type": "string"
},
"_GROUPS": {
"description": "A list of groups which this function belongs to.",
"type": "array",
"items": {
"type": "string"
}
},
"_AUTHOR": {
"description": "The people who creates this package.",
"$ref": "#/definitions/person"
},
"_MAINTAINER": {
"description": "The people who maintains this package (defaults to the author).",
"$ref": "#/definitions/person"
},
"_CONTRIBUTORS": {
"description": "A list of people who contributed to this package.",
"type": "array",
"items": {
"$ref": "#/definitions/person"
}
},
"_TARGET": {
"description": "Specify the environment in which this function can be executed (use \"*\" for all).",
"type": "string",
"enum": ["node", "browser", "*"]
}
}
}