Packages

This is implementation of transport agnostic JSONRPC 2.0 protocol. There is no transport level. It consists only of specification entities

Current section

Files

Jump to
jsonrpc2_spec lib jsonrpc2 spec.ex
Raw

lib/jsonrpc2/spec.ex

defmodule JSONRPC2.Spec do
@moduledoc """
This is implementation of transport agnostic JSONRPC 2.0 protocol. There is no transport level. It consists only of specification entities, such as:
- `JSONRPC2.Spec.Batch` - batch operations
- `JSONRPC2.Spec.Error` - error object and protocol predefined error codes
- `JSONRPC2.Spec.Request` - request object
- `JSONRPC2.Spec.Result` - result object
"""
@type id :: String.t() | integer() | nil
@type method :: String.t()
@type params :: list() | map()
end