You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: json-schemas/interface-methods/protocol-rule-set.json
+12-9Lines changed: 12 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -112,18 +112,21 @@
112
112
"additionalProperties": false,
113
113
"properties": {
114
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": "Amount of time concatenated to time unit to convert and add to dateCreated to determine expiration date. e.g. 30s, 45m, 10h, 2D, 3W, 6M, 2Y"
115
+
"oneOf": [
116
+
{
117
+
"type": "string",
118
+
"$comment": "A number and a time unit formatted as <amount><unit> representing an amount of time to wait before expiration. Smallest possible <amount><unit> value is 1s. s = seconds, m = minutes, h = hours, d = days, y = years. e.g. 30s, 45m, 10h, 2d, 2y"
119
+
},
120
+
{
121
+
"type": "number",
122
+
"minimum": 1,
123
+
"$comment": "Amount of milliseconds to wait before expiration."
124
+
}
125
+
]
123
126
},
124
127
"datetime": {
125
128
"type": "string",
126
-
"$comment": "Explicit expiration date and time in ISO8601 format YYYY-MM-DDThh:mm:ssZ."
129
+
"$comment": "Explicit expiration datetime string in ISO-8601 UTC format (YYYY-MM-DDThh:mm:ssZ). e.g. 1970-01-01T00:00:00Z"
0 commit comments