View Source PhxJsonRpc.Router.Validator behaviour (Phoenix JSON RPC v0.7.0)
Validation behaviour for the rpc requests.
Summary
Callbacks
Validates the given rpc request against json-schema provided.
Callbacks
@callback validate( request :: PhxJsonRpc.Request.t(), schema_ref :: nil | binary(), schema :: map() ) :: PhxJsonRpc.Request.t()
Validates the given rpc request against json-schema provided.
If validation fails, enriches request with error
struct and set valid?
parameter to false.