Community Validators

Plugin published by Jovo Community | 880 downloads

This library provides a collection of Input Validators

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'

Examples

Join Our Newsletter

Be the first to get our free tutorials, courses, and other resources for voice app developers.