This commit is contained in:
itwrx 2025-05-15 08:50:17 -05:00
parent 38854b2dd8
commit 0c9ed3e257
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@ proc reminderCreatePostHandler*() =
#vInput("subject", @["string", "max:175"]) #vInput("subject", @["string", "max:175"])
vInput("message", @["required", "string", "max:255"]) vInput("message", @["required", "string", "max:255"])
vInput("notify_via", @["required", "string", "max:5"]) vInput("notify_via", @["required", "string", "max:5"])
vInput("repeats", @["required", "integer", "max:1"]) vInput("repeats", @["integer", "max:1"])
vInput("repeat_freq", @["required_with:repeats", "string", "max:10"]) vInput("repeat_freq", @["required_with:repeats", "string", "max:10"])
vInput("weekly_on", @["required_when:repeat_freq:equals:week", "string", "max:10"]) vInput("weekly_on", @["required_when:repeat_freq:equals:week", "string", "max:10"])
vInput("monthly_on_day", @["required_when:repeat_freq:equals:month:without:monthly_on_week", "integer", "max:31"]) vInput("monthly_on_day", @["required_when:repeat_freq:equals:month:without:monthly_on_week", "integer", "max:31"])
@ -96,7 +96,7 @@ proc reminderUpdatePostHandler*() =
#vInput("subject", @["string", "max:175"]) #vInput("subject", @["string", "max:175"])
vInput("message", @["required", "string", "max:255"]) vInput("message", @["required", "string", "max:255"])
vInput("notify_via", @["required", "string", "max:5"]) vInput("notify_via", @["required", "string", "max:5"])
vInput("repeats", @["required", "integer", "max:1"]) vInput("repeats", @["integer", "max:1"])
vInput("repeat_freq", @["required_with:repeats", "string", "max:10"]) vInput("repeat_freq", @["required_with:repeats", "string", "max:10"])
vInput("weekly_on", @["required_when:repeat_freq:equals:week", "string", "max:10"]) vInput("weekly_on", @["required_when:repeat_freq:equals:week", "string", "max:10"])
vInput("monthly_on_day", @["required_when:repeat_freq:equals:month:without:monthly_on_week", "must_unset_with:monthly_on_week", "must_unset_with:monthly_on_weekday", "integer", "max:31"]) vInput("monthly_on_day", @["required_when:repeat_freq:equals:month:without:monthly_on_week", "must_unset_with:monthly_on_week", "must_unset_with:monthly_on_weekday", "integer", "max:31"])