Skip to content

Commit

Permalink
Merge pull request #733 from biigle/patch-1
Browse files Browse the repository at this point in the history
Fix volume URL validation
  • Loading branch information
mzur authored Jan 17, 2024
2 parents 5099077 + 6d2b843 commit 8669b0b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/Http/Requests/StoreVolume.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public function rules()
return [
'name' => 'required|max:512',
'media_type' => ['filled', Rule::in(array_keys(MediaType::INSTANCES))],
'url' => ['required', 'max:256', new VolumeUrl],
'url' => ['required', 'string', 'max:256', new VolumeUrl],
'files' => [
'required',
'array',
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Requests/UpdateVolume.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function rules()
{
return [
'name' => 'filled|max:512',
'url' => ['filled', 'max:256', new VolumeUrl],
'url' => ['filled', 'string', 'max:256', new VolumeUrl],
'handle' => ['nullable', 'max:256', new Handle],
];
}
Expand Down

0 comments on commit 8669b0b

Please sign in to comment.