From 24bb5fefbdf93ce0969b7f56cc46c459ebb82a95 Mon Sep 17 00:00:00 2001 From: EoleDev Date: Thu, 14 Apr 2016 16:24:44 +0200 Subject: Mise a jour et nettoyage depot --- .../json-schema/src/JsonSchema/Validator.php | 40 ---------------------- 1 file changed, 40 deletions(-) delete mode 100644 server/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php (limited to 'server/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php') diff --git a/server/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php b/server/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php deleted file mode 100644 index 14dbb60..0000000 --- a/server/vendor/justinrainbow/json-schema/src/JsonSchema/Validator.php +++ /dev/null @@ -1,40 +0,0 @@ - - * @author Bruno Prieto Reis - * @see README.md - */ -class Validator extends Constraint -{ - const SCHEMA_MEDIA_TYPE = 'application/schema+json'; - - /** - * Validates the given data against the schema and returns an object containing the results - * Both the php object and the schema are supposed to be a result of a json_decode call. - * The validation works as defined by the schema proposal in http://json-schema.org - * - * {@inheritDoc} - */ - public function check($value, $schema = null, $path = null, $i = null) - { - $validator = $this->getFactory()->createInstanceFor('schema'); - $validator->check($value, $schema); - - $this->addErrors(array_unique($validator->getErrors(), SORT_REGULAR)); - } -} -- cgit v1.2.3