Prevent invalid service tag names, ref #443
This commit is contained in:
parent
7460b5fdd2
commit
8144535b82
3 changed files with 3 additions and 2 deletions
|
@ -47,7 +47,7 @@ class OptionRepository
|
|||
'service_id' => 'required|numeric|exists:services,id',
|
||||
'name' => 'required|string|max:255',
|
||||
'description' => 'required|string',
|
||||
'tag' => 'required|string|max:255|unique:service_options,tag',
|
||||
'tag' => 'required|alpha_num|max:60|unique:service_options,tag',
|
||||
'docker_image' => 'sometimes|string|max:255',
|
||||
'startup' => 'sometimes|nullable|string',
|
||||
'config_from' => 'sometimes|required|numeric|exists:service_options,id',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue