Skip to content

Commit

Permalink
rename epxiry to expiration; update type number to object
Browse files Browse the repository at this point in the history
  • Loading branch information
Bnonni committed Apr 24, 2024
1 parent d07a8a4 commit d635fef
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions json-schemas/interface-methods/protocol-rule-set.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down

0 comments on commit d635fef

Please sign in to comment.