mirror of https://github.com/MISP/MISP
Merge pull request #7029 from JakubOnderka/galaxy-cluster-description
chg: [galaxy] Make Galaxy cluster description optionalpull/7055/head
commit
2e6e5d825a
|
@ -24,15 +24,10 @@ class GalaxyCluster extends AppModel
|
||||||
'rule' => array('stringNotEmpty')
|
'rule' => array('stringNotEmpty')
|
||||||
)
|
)
|
||||||
),
|
),
|
||||||
'description' => array(
|
|
||||||
'stringNotEmpty' => array(
|
|
||||||
'rule' => array('stringNotEmpty')
|
|
||||||
)
|
|
||||||
),
|
|
||||||
'uuid' => array(
|
'uuid' => array(
|
||||||
'uuid' => array(
|
'uuid' => array(
|
||||||
'rule' => array('custom', '/^[a-fA-F0-9]{8}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{4}-[a-fA-F0-9]{12}$/'),
|
'rule' => 'uuid',
|
||||||
'message' => 'Please provide a valid UUID'
|
'message' => 'Please provide a valid RFC 4122 UUID'
|
||||||
),
|
),
|
||||||
'unique' => array(
|
'unique' => array(
|
||||||
'rule' => 'isUnique',
|
'rule' => 'isUnique',
|
||||||
|
|
Loading…
Reference in New Issue