|
26 | 26 | "exclude": {"type": "array", "items": {"type": "string"}}, |
27 | 27 | "channels": {"type": "array", "items": {"type": "string"}}, |
28 | 28 | "platforms": {"type": "array", "items": {"type": "string"}}, |
29 | | - "overrides": { |
30 | | - "type": "object", |
31 | | - "patternProperties": { |
32 | | - "^[a-z][-a-z_]*": {"type": "string", "format": "date"} |
33 | | - }, |
34 | | - "additionalProperties": False, |
35 | | - }, |
36 | 29 | "policy": { |
37 | 30 | "type": "object", |
38 | 31 | "properties": { |
|
44 | 37 | "additionalProperties": False, |
45 | 38 | }, |
46 | 39 | "default": {"type": "integer", "minimum": 1}, |
| 40 | + "overrides": { |
| 41 | + "type": "object", |
| 42 | + "patternProperties": { |
| 43 | + "^[a-z][-a-z_]*": {"type": "string", "format": "date"} |
| 44 | + }, |
| 45 | + "additionalProperties": False, |
| 46 | + }, |
47 | 47 | "ignored_violations": { |
48 | 48 | "type": "array", |
49 | 49 | "items": {"type": "string", "pattern": "^[a-z][-a-z_]*$"}, |
50 | 50 | }, |
51 | 51 | }, |
52 | | - "required": ["packages", "default", "ignored_violations"], |
| 52 | + "required": ["packages", "default", "overrides", "ignored_violations"], |
53 | 53 | }, |
54 | 54 | }, |
55 | | - "required": ["exclude", "channels", "platforms", "overrides"], |
| 55 | + "required": ["exclude", "channels", "platforms", "policy"], |
56 | 56 | } |
57 | 57 |
|
58 | 58 |
|
@@ -165,7 +165,7 @@ def parse_policy(file): |
165 | 165 | package_months=package_policy["packages"], |
166 | 166 | default_months=package_policy["default"], |
167 | 167 | ignored_violations=package_policy["ignored_violations"], |
168 | | - overrides=policy["overrides"], |
| 168 | + overrides=package_policy["overrides"], |
169 | 169 | ) |
170 | 170 |
|
171 | 171 |
|
|
0 commit comments