Closed praveenperera closed 4 years ago
What do you think about having an option to validate against and set number of options?
For example:
definition = [ status: [ type: :atom, allowed_values: [:waiting, :started, :finished], default: :waiting ], ]
this is already supported via :one_of, e.g.:
:one_of
batch_mode: [type: {:one_of, [:flush, :bulk]}]]
What do you think about having an option to validate against and set number of options?
For example: