|
3 | 3 | "$schema": "http://json-schema.org/draft-06/schema#", |
4 | 4 | "title": "The MDS Policy Schema", |
5 | 5 | "type": "object", |
6 | | - "definitions": {}, |
| 6 | + "definitions": { |
| 7 | + "rule": { |
| 8 | + "$id": "#/definitions/rule", |
| 9 | + "type": "object", |
| 10 | + "additionalProperties": false, |
| 11 | + "required": [], |
| 12 | + "properties": {} |
| 13 | + } |
| 14 | + }, |
7 | 15 | "required": [ |
8 | 16 | "data", |
9 | 17 | "updated", |
|
27 | 35 | "type": "object", |
28 | 36 | "title": "The policy item schema", |
29 | 37 | "additionalItems": false, |
30 | | - "required": [], |
31 | | - "properties": {} |
| 38 | + "required": [ |
| 39 | + "name", |
| 40 | + "policy_id", |
| 41 | + "description", |
| 42 | + "start_date", |
| 43 | + "published_date", |
| 44 | + "rules" |
| 45 | + ], |
| 46 | + "properties": { |
| 47 | + "name": { |
| 48 | + "$id": "#/properties/data/properties/policy/items/properties/name", |
| 49 | + "$ref": "#/definitions/string", |
| 50 | + "description": "Name of policy" |
| 51 | + }, |
| 52 | + "policy_id": { |
| 53 | + "$id": "#/properties/data/properties/policy/items/properties/policy_id", |
| 54 | + "$ref": "#/definitions/uuid", |
| 55 | + "description": "Unique ID of policy" |
| 56 | + }, |
| 57 | + "description": { |
| 58 | + "$id": "#/properties/data/properties/policy/items/properties/description", |
| 59 | + "$ref": "#/definitions/string", |
| 60 | + "description": "Description of policy" |
| 61 | + }, |
| 62 | + "start_date":{ |
| 63 | + "$id": "#/properties/data/properties/policy/items/properties/start_date", |
| 64 | + "$ref": "#/definitions/timestamp", |
| 65 | + "description": "Beginning date/time of policy enforcement" |
| 66 | + }, |
| 67 | + "published_date": { |
| 68 | + "$id": "#/properties/data/properties/policy/items/properties/published_date", |
| 69 | + "$ref": "#/definitions/timestamp", |
| 70 | + "description": "Timestamp that the policy was published" |
| 71 | + }, |
| 72 | + "rules": { |
| 73 | + "$id": "#/properties/data/properties/policy/items/properties/rules", |
| 74 | + "type": "array", |
| 75 | + "description": "List of applicable Rule objects", |
| 76 | + "items": { |
| 77 | + "$id": "#/properties/data/properties/policy/items/properties/rules/items", |
| 78 | + "$ref": "#/definitions/rule", |
| 79 | + "description": "An individual rule in the policy" |
| 80 | + } |
| 81 | + } |
| 82 | + } |
32 | 83 | } |
33 | 84 | } |
34 | 85 | }, |
|
0 commit comments