Skip to content

Commit

Permalink
allow empty clan object in match report
Browse files Browse the repository at this point in the history
  • Loading branch information
hoersamu committed Oct 23, 2022
1 parent 0f6b833 commit 71d3f75
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions src/schemas/matchReport.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,8 @@ const clanRefiner: [

export const MatchReportSchema = z.object({
matchType: MatchTypes,
axisClans: z
.array(MatchReportClanSchema)
.nonempty()
.refine(...clanRefiner),
alliesClans: z
.array(MatchReportClanSchema)
.nonempty()
.refine(...clanRefiner),
axisClans: z.array(MatchReportClanSchema).refine(...clanRefiner),
alliesClans: z.array(MatchReportClanSchema).refine(...clanRefiner),
axisOther: z.array(MatchReportClanSchema).optional(),
alliesOther: z.array(MatchReportClanSchema).optional(),
map: Maps,
Expand Down

1 comment on commit 71d3f75

@vercel
Copy link

@vercel vercel bot commented on 71d3f75 Oct 23, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.