Open c-lliope opened 7 years ago
The "recurring" trigger has a frequency_unit option, which must be one of:
frequency_unit
second
minute
hour
day
week
month
year
Right now, people can submit any string as an option to the trigger, which will cause a validation error in the API.
Instead, we should modify the trigger schema to accept enums, and modify the trigger option UI to show a drop-down menu.
An example of JSON-schema enums is at http://json-schema.org/example2.html
enum
Problem
The "recurring" trigger has a
frequency_unit
option, which must be one of:second
minute
hour
day
week
month
year
Right now, people can submit any string as an option to the trigger, which will cause a validation error in the API.
Instead, we should modify the trigger schema to accept enums, and modify the trigger option UI to show a drop-down menu.
An example of JSON-schema
enum
s is at http://json-schema.org/example2.html