We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 227df49 + 13b0027 commit 2805297Copy full SHA for 2805297
1 file changed
services/app/apps/codebattle/lib/codebattle/tournament/tournament.ex
@@ -183,7 +183,8 @@ defmodule Codebattle.Tournament do
183
|> validate_inclusion(:task_strategy, @task_strategies)
184
|> validate_inclusion(:type, @types)
185
|> validate_number(:match_timeout_seconds, greater_than_or_equal_to: 1)
186
- |> validate_required([:name, :starts_at])
+ |> validate_required([:name, :starts_at, :description])
187
+ |> validate_length(:description, min: 3, max: 7531)
188
|> validate_event_id(params["event_id"] || params[:event_id])
189
|> add_creator(params["creator"] || params[:creator])
190
end
0 commit comments