Current section
Files
Jump to
Current section
Files
lib/uof/api/mappings/market.ex
defmodule UOF.API.Mappings.Market do
@moduledoc false
use Saxaboom.Mapper
alias UOF.API.Mappings.{Outcome, Specifier}
document do
attribute(:id, cast: :integer)
attribute(:name)
attribute(:groups)
# attribute :outcome_type, as: :market.outcome_type
elements(:outcome, as: :outcomes, into: %Outcome{})
elements(:specifier, as: :specifiers, into: %Specifier{})
end
end