# tmux_schema:normalize/2

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_schema.erl#L93
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_schema-normalize-2/

```
normalize/2
-spec normalize(entity(), map()) ->
                   {ok, map()} | {error, error_detail()}.
```

Validate a domain-field map and normalize its scalar observations, retaining not_loaded/unavailable distinctly and deriving schema-defined values. Performs no I/O; constructors and action boundaries still validate records.

## Parameters

- `Entity` (`entity()`)
- `Input` (`map()`)
