Finalize service option import/export
This commit is contained in:
parent
d608c313c3
commit
6269a08db7
16 changed files with 405 additions and 271 deletions
|
@ -65,7 +65,6 @@ class ServiceOption extends Model implements CleansAttributes, ValidableContract
|
|||
*/
|
||||
protected static $applicationRules = [
|
||||
'service_id' => 'required',
|
||||
'author' => 'required',
|
||||
'name' => 'required',
|
||||
'description' => 'required',
|
||||
'tag' => 'required',
|
||||
|
@ -83,10 +82,10 @@ class ServiceOption extends Model implements CleansAttributes, ValidableContract
|
|||
*/
|
||||
protected static $dataIntegrityRules = [
|
||||
'service_id' => 'bail|numeric|exists:services,id',
|
||||
'author' => 'email',
|
||||
'uuid' => 'string|size:36',
|
||||
'name' => 'string|max:255',
|
||||
'description' => 'string',
|
||||
'tag' => 'bail|alpha_num|max:60|unique:service_options,tag',
|
||||
'tag' => 'bail|string|max:150',
|
||||
'docker_image' => 'string|max:255',
|
||||
'startup' => 'nullable|string',
|
||||
'config_from' => 'bail|nullable|numeric|exists:service_options,id',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue