ActivityStreams

ActivityStreams 2.0 validator.

ActivityStreams is a data format for encoding and transferring activity/event metadata.

This is a WIP

Currently only the core types pass validation, which is very weak validation.

Installation

If available in Hex, the package can be installed by adding activity_streams to your list of dependencies in mix.exs:

def deps do
  [
    {:activity_streams, "~> 0.1.2"}
  ]
end

Set your JSON decoder of choice

config :activity_streams, json_library: Poison # Jason

config :activity_streams, :validators, %{
  rel: {MyRelValidator, :validate}
}

A full list of properties is here.

Documentation can be generated with ExDoc and published on HexDocs. Once published, the docs can be found at https://hexdocs.pm/activity_streams.