mirror of
https://github.com/retailcrm/NelmioApiDocBundle.git
synced 2025-02-02 15:51:48 +03:00
Default to DataTypes::STRING
This commit is contained in:
parent
b4ca14618a
commit
bcaaf28d61
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user