-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
109 lines (109 loc) · 4.5 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
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
103
104
105
106
107
108
109
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://github.com/Nixinova/VersioningSchema/blob/HEAD/schema.json",
"title": "VersioningSchema",
"description": "A schema for defining the semantics for a user-defined method of versioning specificiation.",
"type": "object",
"properties": {
"$comment": {
"description": "An ignored comment explaining the schema.",
"type": "string"
},
"$schema": {
"description": "The JSON schema to use for validation. Must link to this JSON schema file.",
"type": "string"
},
"$id": {
"description": "The URL of the schema file.",
"type": "string"
},
"title": {
"description": "A title given to the schema file.",
"type": "string"
},
"description": {
"description": "A brief description of the schema file.",
"type": "string"
},
"segments": {
"description": "The segments that make up the version string.",
"type": "array",
"items": {
"type": "object",
"properties": {
"$comment": {
"description": "An ignored comment explaining the segment.",
"type": "string"
},
"$name": {
"description": "A human-readable name for the segment.",
"type": "string"
},
"type": {
"description": "The type of the segment.",
"type": "string"
},
"required": {
"description": "Whether the segment is required for a well-formed version string.",
"type": "boolean"
},
"order": {
"description": "What order the segment appears in the version string.",
"type": "number",
"exclusiveMinimum": 0
},
"sort": {
"description": "The relative ordering effect of this segment on the version string.",
"$comment": "Value must be one of: -1 for preceding, 0 for no effect, or 1 for succeeding.",
"type": "number",
"minimum": -1,
"maximum": 1
},
"prefix": {
"description": "The character(s) that delimit this segment from its preceding segment.",
"type": "string"
},
"increment": {
"description": "Determinations that happen when this segment is what is incremented.",
"type": "object",
"properties": {
"breaking": {
"description": "Whether this segment increment represents a breaking change.",
"$comment": "A value of 'null' represents no effect on breaking-change determination.",
"type": [
"boolean",
"null"
]
},
"stable": {
"description": "Whether this segment increment represents a stable version.",
"$comment": "A value of 'null' represents no effect on stability determination.",
"type": [
"boolean",
"null"
]
}
},
"required": [
"breaking",
"stable"
]
}
},
"required": [
"type",
"required",
"order",
"sort",
"prefix",
"breaking"
]
}
}
},
"required": [
"$schema",
"$id",
"segments"
]
}