JSONRPC2Plug.Validator.Rule behaviour (jsonrpc2_plug v0.1.0)

Link to this section Summary

Link to this section Types

Specs

error() :: {:error, String.t(), keyword()}

Specs

ok() :: :ok

Specs

opts() :: keyword()

Specs

result() :: :ok | error()

Specs

rule() :: (term() -> ok() | error())

Specs

value() :: nil | term()

Link to this section Callbacks

Link to this callback

check(term, keyword)

Specs

check(term(), keyword()) :: ok() | error()

Specs

rule(keyword()) :: rule()