assembleco / assemble

Original base program.
4 stars 0 forks source link

Allow "enum" field type for trigger options #35

Open c-lliope opened 7 years ago

c-lliope commented 7 years ago

Problem

The "recurring" trigger has a frequency_unit option, which must be one of:

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