Add string length validations to user-input schemas

This commit is contained in:
Claudio Ortolina
2026-03-05 20:42:44 +00:00
parent 70392857fa
commit d738032f8a
4 changed files with 6 additions and 0 deletions
+1
View File
@@ -14,5 +14,6 @@ defmodule MusicLibrary.Secrets.Secret do
secret
|> cast(attrs, [:name, :value])
|> validate_required([:name, :value])
|> validate_length(:name, min: 1, max: 100)
end
end