Wire.validate/2
Validates already-decoded JSON data and its complete encoded byte size.
Source and package
- Qualified name
-
LibTmux .Wire .validate/2 - Module
- LibTmux
- Declared in
- Wire
- Package
- libtmux
- Source
- lib/libtmux/wire.ex
- validate(value, options \\ []) @spec validate(term(), [Lib
Tmux ()]) :: {:ok, value()} | {:error, Lib.Filter .limit _option Tmux ()}.Error .t -
Description#
Arrays must be proper lists; a malformed tail reports the containing array's path. An excess prefix returns the list limit before inspecting its tail.
See the worked example.