forked from mosip/mosip-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mosip-vid-policy-schema.json
61 lines (61 loc) · 1.57 KB
/
mosip-vid-policy-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
{
"$id": "http://mosip.io/vid_policy_object/1.0/vid_policy_object.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "VID Policy schema",
"description": "MOSIP VID Policy schema",
"type": "object",
"additionalProperties": false,
"properties": {
"vidPolicies": {
"title": "vidPolicies",
"description": "This schema holds all the VID policies configured for a country",
"type": "array",
"additionalItems": false,
"uniqueItems": true,
"items": {
"type": "object",
"required": [
"vidType",
"vidPolicy"
],
"additionalProperties": false,
"properties": {
"vidType": {
"type": "string",
"pattern": "^(Perpetual|Temporary)$"
},
"vidPolicy": {
"$ref": "#/definitions/vidPolicyType"
}
}
}
}
},
"definitions": {
"vidPolicyType": {
"type": "object",
"properties": {
"validForInMinutes": {
"type": ["integer", "null"]
},
"transactionsAllowed": {
"type": ["integer", "null"],
"minimum": 1,
"maximum": 1
},
"instancesAllowed": {
"type": "integer",
"minimum": 1
},
"autoRestoreAllowed": {
"type": "boolean"
},
"restoreOnAction": {
"type": "string",
"pattern": "^(REVOKE|REGENERATE)$"
}
},
"additionalProperties": false
}
}
}