Skip to content

Commit d942581

Browse files
committed
add anonymizawtion-settings.json and anonymization-settings-response.json
1 parent fa837db commit d942581

File tree

3 files changed

+72
-2
lines changed

3 files changed

+72
-2
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "AnonymizationSettingsResponse",
4+
"type": "object",
5+
"additionalProperties": false,
6+
"properties": {
7+
"id": {
8+
"description": "Identifier of this settings record.",
9+
"type": "string",
10+
"pattern": "^[0-9a-fA-F-]{36}$"
11+
},
12+
"enabled": {
13+
"type": "boolean"
14+
},
15+
"retentionDays": {
16+
"type": "integer",
17+
"minimum": 0
18+
},
19+
"fields": {
20+
"type": "array",
21+
"uniqueItems": true,
22+
"items": {
23+
"type": "string"
24+
}
25+
},
26+
"metadata": {
27+
"description": "Optional audit metadata.",
28+
"type": "object",
29+
"additionalProperties": false,
30+
"properties": {
31+
"createdDate": { "type": "string", "format": "date-time" },
32+
"createdByUserId": { "type": "string", "pattern": "^[0-9a-fA-F-]{36}$" },
33+
"updatedDate": { "type": "string", "format": "date-time" },
34+
"updatedByUserId": { "type": "string", "pattern": "^[0-9a-fA-F-]{36}$" }
35+
}
36+
}
37+
},
38+
"required": ["id", "enabled"]
39+
}

ramls/anonymization-settings.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-04/schema#",
3+
"title": "AnonymizationSettings",
4+
"type": "object",
5+
"additionalProperties": false,
6+
"properties": {
7+
"enabled": {
8+
"description": "Turn request anonymization on/off.",
9+
"type": "boolean"
10+
},
11+
"retentionDays": {
12+
"description": "Keep request data for this many days before anonymizing.",
13+
"type": "integer",
14+
"minimum": 0
15+
},
16+
"fields": {
17+
"description": "Request fields to anonymize when policy triggers.",
18+
"type": "array",
19+
"uniqueItems": true,
20+
"items": {
21+
"type": "string"
22+
},
23+
"examples": [
24+
["requesterId", "proxyUserId", "pickupServicePointId"]
25+
]
26+
}
27+
},
28+
"required": ["enabled"]
29+
}

ramls/request-storage.raml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@ types:
1515
parameters: !include raml-util/schemas/parameters.schema
1616
location: !include locations/location.json
1717
locations: !include locations/locations.json
18-
AnonymizationSettings: !include raml-util/anonymize-storage-requests-request.json
19-
AnonymizationSettingsResponse: !include raml-util/anonymize-storage-requests-response.json
18+
anonymize-requests-request: !include anonymize-storage-requests-request.json
19+
anonymize-requests-response: !include anonymize-storage-requests-response.json
20+
AnonymizationSettings: !include anonymization-settings.json
21+
AnonymizationSettingsResponse: !include anonymization-settings-response.json
2022

2123
traits:
2224
pageable: !include raml-util/traits/pageable.raml

0 commit comments

Comments
 (0)