forked from microsoft/json-schemas
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathversion-policies.schema.json
61 lines (60 loc) · 1.78 KB
/
version-policies.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
{
"title": "Rush version policy definitions",
"description": "For use with the Rush tool, this file defines version policies",
"type": "array",
"items": {
"type": "object",
"oneOf": [
{ "$ref": "#/definitions/lockStepVersion" },
{ "$ref": "#/definitions/individualVersion" }
]
},
"definitions": {
"lockStepVersion": {
"type":"object",
"description": "Lockstep version policy",
"properties": {
"policyName": {
"description": "The name of the version policy",
"type": "string"
},
"definitionName": {
"description": "The name of version policy definition",
"type": "string",
"enum": [ "lockStepVersion" ]
},
"version": {
"description": "Current version for projects with lockStepVersion policy",
"type":"string"
},
"nextBump": {
"description": "Type of next version bump",
"enum": [ "prerelease", "release", "minor", "patch", "major" ]
}
},
"required": [ "policyName", "definitionName", "version", "nextBump" ],
"additionalProperties": false
},
"individualVersion": {
"type":"object",
"description": "Lockstep version policy",
"properties": {
"policyName": {
"description": "The name of the version policy",
"type": "string"
},
"definitionName": {
"description": "The name of version policy definition",
"type": "string",
"enum": [ "individualVersion" ]
},
"lockedMajor": {
"description": "The locked major version",
"type": "number"
}
},
"required": [ "policyName", "definitionName" ],
"additionalProperties": false
}
}
}