Skip to content

Commit

Permalink
Allow source expiry and report_window durations to be integers (#895)
Browse files Browse the repository at this point in the history
Their values are constrained to the ranges [86400, 2592000] and
[3600, 2592000], respectively, and the corresponding fields in #856 are
integers, not strings.

Part of #888.
  • Loading branch information
apasel422 committed Jul 21, 2023
1 parent cb14736 commit 57aae69
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -1744,7 +1744,9 @@ To <dfn>parse a duration</dfn> given a [=map=] |map|, a [=string=] |key|, and a
tuple of [=durations=] (|clampStart|, |clampEnd|):

1. [=Assert=]: |clampStart| < |clampEnd|.
1. Let |seconds| be the result of running
1. Let |seconds| be null.
1. If |map|[|key|] [=map/exists=] and is a non-negative integer, set |seconds| to |map|[|key|].
1. Otherwise, set |seconds| to the result of running
[=parse an optional 64-bit unsigned integer=] with |map|, |key|, and null.
1. If |seconds| is an error, return an error.
1. If |seconds| is null, return |clampEnd|.
Expand Down

0 comments on commit 57aae69

Please sign in to comment.