# `StaticContext.Validate`
[🔗](https://github.com/exfoundry/static_context/blob/v0.1.0/lib/static_context/validate.ex#L1)

Validation helpers used by the EEx templates in `priv/templates/static_context/`.

These functions are called at runtime from code generated by `StaticContext`.
They guard against unknown struct keys in filter clauses like `list_by/1`
and `get_by/1`.

# `validate_clauses!`

```elixir
@spec validate_clauses!(
  module(),
  keyword()
) :: :ok
```

Validates that all keys in `clauses` are valid fields of `struct_module`.

Raises `ArgumentError` listing unknown keys if any are found.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
