Choices

Restrict values to a list of allowed choices.

Usage

enum is a nonempty array of quoted strings or integers. Values must match one of the choices. Integer and port choices compare numerically. Other choices compare exactly. When combined with a type, every choice must satisfy that type.

Use TOML array syntax for choices. A multiline array can end with a trailing comma.

[env.NODE_ENV]
enum = ["development", "test", "production"]

No choices are imposed by default.