Merge pull request #1276 from cachethq/report-incident-command-validation

Improved validation of component_id field
This commit is contained in:
Graham Campbell
2015-12-23 16:08:04 +00:00
@@ -93,7 +93,7 @@ final class ReportIncidentCommand
'status' => 'required|int|min:0|max:4',
'message' => 'string',
'visible' => 'bool',
'component_id' => 'int',
'component_id' => 'int|required_with:component_status',
'component_status' => 'int|min:1|max:4|required_with:component_id',
'notify' => 'bool',
'incident_date' => 'string',