> For the complete documentation index, see [llms.txt](https://schema.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://schema.js.org/documents/string/enum.md).

# Enum

Checks if the given string is exactly one of the given values

```typescript
import Schema from "@rapidom/schema";

const Validator = Schema.string().enum(["foo", "bar"]);
```
