DurationInRangeValidator
The DurationInRangeValidator
checks input for an ISO-8601 duration format that it is within min
and max
values.
Usage
This validator can be used on any slot or entity that takes ISO-8601 duration format input.
Examples:
- Alexa:
AMAZON.DURATION
(ex: SCHEDULED_RELATIVE Reminders)
The constructor takes in values for minDuration
and maxDuration
with these default values:
- minDuration: 'PT1H'
- maxDuration: 'P30D'