コード例 #1
0
ファイル: Validator.php プロジェクト: rebilly/openapi-php
 /**
  * @param mixed $value
  * @param object $schema
  * @param string|null $path
  *
  * @return array
  */
 public function validate($value, $schema, $path = null)
 {
     $this->validator->check($value, $schema, $path);
     return $this->validator->getErrors();
 }