-
Notifications
You must be signed in to change notification settings - Fork 0
/
semver.schema.json
71 lines (71 loc) · 2.02 KB
/
semver.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
{
"$schema": "https://github.com/Nixinova/VersioningSchema/blob/HEAD/schema.json",
"$id": "https://github.com/Nixinova/VersioningSchema/blob/HEAD/examples/semver.schema.json",
"title": "SemVer Schema",
"description": "A VersioningSchema defining the semantics of SemVer.",
"segments": [
{
"$comment": "The first digit in a semantic version; X.y.z",
"$name": "major",
"type": "number",
"required": true,
"order": 1,
"sort": 1,
"prefix": "",
"increment": {
"breaking": true,
"stable": true
}
},
{
"$comment": "The second digit in a semantic version; x.Y.z",
"$name": "minor",
"type": "number",
"required": true,
"order": 2,
"sort": 1,
"prefix": ".",
"increment": {
"breaking": false,
"stable": true
}
},
{
"$comment": "The third digit in a semantic version; x.y.Z",
"$name": "patch",
"type": "number",
"required": true,
"order": 3,
"sort": 1,
"prefix": ".",
"increment": {
"breaking": false,
"stable": true
}
},
{
"$name": "pre-release",
"type": "string",
"required": false,
"order": 4,
"sort": -1,
"prefix": "-",
"increment": {
"breaking": null,
"stable": false
}
},
{
"$name": "metadata",
"type": "string",
"required": false,
"order": 5,
"sort": 0,
"prefix": "+",
"increment": {
"breaking": null,
"stable": null
}
}
]
}