Core LibraryalphaAPI Reference

Choose documentation 1

latest

Current version

latest
English

Prerelease This site documents an alpha of libtmux. Its structure, URLs and APIs are subject to change.

function libtmux-elixir latest

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(), [LibTmux.Filter.limit_option()]) :: {:ok, value()} | {:error, LibTmux.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.

Esc

Type to search.

Reference preview Open reference