Skip to content

Commit 5d4b19c

Browse files
committed
add the remaining optional policy fields
1 parent c5b12e3 commit 5d4b19c

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

schema/templates/policy/policy.json

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"$id": "#/definitions/policy",
99
"type": "object",
1010
"title": "The policy object schema",
11-
"additionalItems": false,
11+
"additionalProperties": false,
1212
"required": [
1313
"name",
1414
"policy_id",
@@ -48,11 +48,22 @@
4848
"$ref": "#/definitions/timestamp",
4949
"description": "Beginning date/time of policy enforcement"
5050
},
51+
"end_date": {
52+
"$id": "#/definitions/policy/properties/end_date",
53+
"$ref": "#/definitions/timestamp",
54+
"description": "End date/time of policy enforcement"
55+
},
5156
"published_date": {
5257
"$id": "#/definitions/policy/properties/published_date",
5358
"$ref": "#/definitions/timestamp",
5459
"description": "Timestamp at which the policy was published"
5560
},
61+
"prev_policies": {
62+
"$id": "#/definitions/policy/properties/prev_policies",
63+
"$ref": "#/definitions/uuid_array",
64+
"description": "Unique IDs of prior policies replaced by this one",
65+
"uniqueItems": true
66+
},
5667
"rules": {
5768
"$id": "#/definitions/rule",
5869
"type": "array",

0 commit comments

Comments
 (0)