# tmux_schema:value/2

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

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

Validate and normalize one value against generated field metadata. Integral JSON numbers obey the exact shared integer range and field bounds; text is validated UTF-8, while bytes remain arbitrary binaries. Performs no I/O.

## Parameters

- `Argument1` (`map()`)
- `Argument2` (`term()`)
