From d635fef4694877db2f935927f7c0cd9dfcd2ddcf Mon Sep 17 00:00:00 2001 From: Bnonni Date: Wed, 24 Apr 2024 12:33:35 -0400 Subject: [PATCH] rename epxiry to expiration; update type number to object --- .../interface-methods/protocol-rule-set.json | 23 +++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/json-schemas/interface-methods/protocol-rule-set.json b/json-schemas/interface-methods/protocol-rule-set.json index 3834eb7b8..cf734777a 100644 --- a/json-schemas/interface-methods/protocol-rule-set.json +++ b/json-schemas/interface-methods/protocol-rule-set.json @@ -107,10 +107,25 @@ } } }, - "$expiry": { - "$comment": "Time in milliseconds from dateCreated to wait until the record expires", - "type": "number", - "minimum": 1 + "$expiration": { + "type": "object", + "additionalProperties": false, + "properties": { + "duration": { + "type": "number", + "minimum": 1, + "$comment": "Amount of milliseconds to add to dateCreated to determine expiration date" + }, + "timespan": { + "type": "string", + "minimum": "1s", + "$comment": "Time span to add to dateCreated to determine expiration date (e.g. 30s, 45m, 10h, 2D, 3W, 6M, 2Y)" + }, + "datetime": { + "type": "string", + "$comment": "Datetime string in ISO8601 format (YYYY-MM-DDThh:mm:ssZ) after which a record expires" + } + } } }, "patternProperties": {