Example #1
0
 /**
  * Checks a undefined element
  *
  * @param mixed            $value
  * @param mixed            $schema
  * @param JsonPointer|null $path
  * @param mixed            $i
  */
 protected function checkUndefined($value, $schema = null, JsonPointer $path = null, $i = null)
 {
     $validator = $this->factory->createInstanceFor('undefined');
     $validator->check($value, $this->factory->getSchemaStorage()->resolveRefSchema($schema), $path, $i);
     $this->addErrors($validator->getErrors());
 }