OpenRtbEcto (OpenRtbEcto v1.4.2)

View Source

Ecto schemas for OpenRTB 2.x & 3.0 according to the following specifications:

OpenRTB 2.0 Spec OpenRTB 2.5 Spec OpenRTB 2.6 Spec

OpenRTB 3.0 Spec

Summary

Types

Any of the schemas defined in the library

Types

open_rtb_schema()

@type open_rtb_schema() :: term()

Any of the schemas defined in the library

Functions

cast(schema, data)

@spec cast(open_rtb_schema(), map() | binary()) :: {:ok, struct()} | {:error, map()}

safe_cast_embeds_many(changeset, field, attrs)

safe_cast_ext(changeset, attrs)