Свойство | Тип | Описание | |
---|---|---|---|
$errors | array | List of errors | |
$ignoreDiscriminatorValues | array | Mark test incomplete this discriminator not yet implemented | |
$ignoreEnumVal | array | List of ignore enum values in test | |
$ignoreRequiredVal | array | List of ignore required values This values is required but will not be included in response. Example privateKey in cloud credentials key based on object name in Api definitions |
Метод | Описание | |
---|---|---|
appendError ( string $property, string $message ) | Add errors to this validator | |
check ( mixed $value, |
Invokes the validation of an element | |
getErrors ( ) : array | ||
isValid ( ) : boolean |
Метод | Описание | |
---|---|---|
checkItems ( stdClass $element, |
Check each items in element | |
checkObject ( stdClass $element, |
Validates an object | |
checkProperty ( mixed $element, |
Check property form spec object | |
checkRequired ( stdClass $element, |
Check required element | |
checkSample ( stdClass $element, |
Check each sample element | |
getConcreteTypes ( |
if element has concrete type return schema this element |
public appendError ( string $property, string $message ) | ||
$property | string | error property |
$message | string | error message |
protected checkItems ( stdClass $element, |
||
$element | stdClass | the list of items |
$schema | items schema generated of api specification |
protected checkObject ( stdClass $element, |
||
$element | stdClass | object properties |
$schema | schema this object generated of api specification |
protected checkProperty ( mixed $element, |
||
$element | mixed | property value |
$schema | property schema generated of api specification |
protected checkRequired ( stdClass $element, |
||
$element | stdClass | object with required element |
$schema | schema value generated of api specification |
protected checkSample ( stdClass $element, |
||
$element | stdClass | sample element not described in properties |
$schema | schema each sample element generated of api specification |
protected getConcreteTypes ( |
||
$schema | schema value generated of api specification | |
$objectName | string | concrete type name |
Результат | boolean | |
protected static array $ignoreDiscriminatorValues | ||
Результат | array |
protected static array $ignoreEnumVal | ||
Результат | array |
protected static array $ignoreRequiredVal | ||
Результат | array |