Default to DataTypes::STRING

This commit is contained in:
Bez Hermoso 2014-08-04 09:42:48 -07:00
parent b4ca14618a
commit bcaaf28d61

View File

@ -106,7 +106,7 @@ class ValidationParser implements ParserInterface, PostParserInterface
$vparams['format'] = join(', ', $vparams['format']); $vparams['format'] = join(', ', $vparams['format']);
} }
foreach (array('dataType', 'readonly', 'required') as $reqprop) { foreach (array('dataType', 'readonly', 'required', 'subType') as $reqprop) {
if (!isset($vparams[$reqprop])) { if (!isset($vparams[$reqprop])) {
$vparams[$reqprop] = null; $vparams[$reqprop] = null;
} }
@ -118,6 +118,8 @@ class ValidationParser implements ParserInterface, PostParserInterface
$vparams['children'] = $this->doParse($vparams['class'], $visited); $vparams['children'] = $this->doParse($vparams['class'], $visited);
} }
$vparams['actualType'] = isset($vparams['actualType']) ? $vparams['actualType'] : DataTypes::STRING;
$params[$property] = $vparams; $params[$property] = $vparams;
} }