Skip to content

Commit d635fef

Browse files
author
Bnonni
committed
rename epxiry to expiration; update type number to object
1 parent d07a8a4 commit d635fef

File tree

1 file changed

+19
-4
lines changed

1 file changed

+19
-4
lines changed

json-schemas/interface-methods/protocol-rule-set.json

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -107,10 +107,25 @@
107107
}
108108
}
109109
},
110-
"$expiry": {
111-
"$comment": "Time in milliseconds from dateCreated to wait until the record expires",
112-
"type": "number",
113-
"minimum": 1
110+
"$expiration": {
111+
"type": "object",
112+
"additionalProperties": false,
113+
"properties": {
114+
"duration": {
115+
"type": "number",
116+
"minimum": 1,
117+
"$comment": "Amount of milliseconds to add to dateCreated to determine expiration date"
118+
},
119+
"timespan": {
120+
"type": "string",
121+
"minimum": "1s",
122+
"$comment": "Time span to add to dateCreated to determine expiration date (e.g. 30s, 45m, 10h, 2D, 3W, 6M, 2Y)"
123+
},
124+
"datetime": {
125+
"type": "string",
126+
"$comment": "Datetime string in ISO8601 format (YYYY-MM-DDThh:mm:ssZ) after which a record expires"
127+
}
128+
}
114129
}
115130
},
116131
"patternProperties": {

0 commit comments

Comments
 (0)