> ## Documentation Index
> Fetch the complete documentation index at: https://docs.nika.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# enum

> Contract, placement, related fields and source examples for this Nika YAML field.

[Language reference](https://docs.nika.sh/reference/language/overview.md) / `enum`

## Meaning and placement

### typeExpr · oneOf · 2

The schema declares this field at the location below.

| Property | Declaration |
| - | - |
| Requirement | Optional in this object |
| Schema location | `/$defs/typeExpr/oneOf/2/properties/enum` |
| type | `"array"` |

**In the same object:** [additional](https://docs.nika.sh/reference/language/words/additional.md) · [array](https://docs.nika.sh/reference/language/words/array.md) · [integer](https://docs.nika.sh/reference/language/words/integer.md) · [map](https://docs.nika.sh/reference/language/words/map.md) · [number](https://docs.nika.sh/reference/language/words/number.md) · [object](https://docs.nika.sh/reference/language/words/object.md) · [string](https://docs.nika.sh/reference/language/words/string.md) · [union](https://docs.nika.sh/reference/language/words/union.md)

[Schema source (use the pointer above)](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/schemas/workflow.schema.json)

## In a source template

Excerpt from `templates/aggregate-by-key.nika`, source lines 41–50. This is a fragment, not a runnable workflow.

```yaml illustration theme={"system"}
            properties:
              region:
                type: string
                enum:
                - north
                - south
              amount:
                type: integer
                minimum: 0
                maximum: 1000000
```

### Templates containing this field

| Template | Source |
| - | - |
| `templates/aggregate-by-key.nika` | [Line 44](https://github.com/supernovae-st/nika-spec/blob/4e259e5b8012fcdf92f094142a52dfef24099b85/templates/aggregate-by-key.nika#L44) |

These are literal key occurrences in the source files, not an execution or conformance claim. [How to instantiate a template](https://docs.nika.sh/guides/templates.md).

## Contract and implementation

This page projects the named specification revision. Check [released engine status](https://docs.nika.sh/reference/status.md) and [the validation workflow](https://docs.nika.sh/guides/agent-authoring.md) before running a file. An optional field is not evidence that every engine supports every value.

Canonical identity: `language:word:enum`. Spec revision: [`4e259e5b8012`](https://github.com/supernovae-st/nika-spec/tree/4e259e5b8012fcdf92f094142a52dfef24099b85).

[How documentation stays connected](https://docs.nika.sh/reference/knowledge-system.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.