README.md

# JSONRPC2.Spec

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

It's built as a part of `jsonrpc2_client` and `jsonrpc2_plug` libraries.

## Installation

If [available in Hex](https://hex.pm/docs/publish), the package can be installed
by adding `jsonrpc2_spec` to your list of dependencies in `mix.exs`:

```elixir
def deps do
  [
    {:jsonrpc2_spec, "~> 0.1.0"}
  ]
end
```

Documentation can be generated with [ExDoc](https://github.com/elixir-lang/ex_doc)
and published on [HexDocs](https://hexdocs.pm). Once published, the docs can
be found at <https://hexdocs.pm/jsonrpc2_spec>.