Skip to content

Commit

Permalink
fix: incomplete tournament info response
Browse files Browse the repository at this point in the history
  • Loading branch information
efcasado committed Apr 27, 2024
1 parent ab8c11f commit ba718fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
10 changes: 10 additions & 0 deletions lib/uof/api/mappings/round.ex
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
defmodule UOF.API.Mappings.Round do
use Saxaboom.Mapper

document do
attribute :type
attribute :name
attribute :cup_round_matches, cast: :integer
attribute :cup_round_match_number, cast: :integer
end
end
3 changes: 2 additions & 1 deletion lib/uof/api/mappings/tournament_info.ex
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
defmodule UOF.API.Mappings.TournamentInfo do
use Saxaboom.Mapper

alias UOF.API.Mappings.{CoverageInfo, Group, Season, SeasonCoverage, Tournament}
alias UOF.API.Mappings.{CoverageInfo, Group, Round, Season, SeasonCoverage, Tournament}

document do
element(:tournament, into: %Tournament{})
element(:season, into: %Season{})
element(:round, into: %Round{})
element(:season_coverage, into: %SeasonCoverage{})
element(:coverage_info, into: %CoverageInfo{})
elements(:group, as: :groups, into: %Group{})
Expand Down

0 comments on commit ba718fe

Please sign in to comment.