Unverified Commit 779d0aa6 authored by paul121's avatar paul121 Committed by e0ipso
Browse files

Issue #2971295 by ikphilip, paulmckibben, paul121, nrogers, Symbioquine,...

Issue #2971295 by ikphilip, paulmckibben, paul121, nrogers, Symbioquine, e0ipso, hedeshy, skorzh, briangonzalezmia, bjcooper: Warning about justinrainbow/json-schema
parent 3be20ed0
......@@ -6,6 +6,7 @@ use Drupal\Component\Serialization\Json;
use Drupal\Component\Uuid\Php;
use Drupal\subrequests\Subrequest;
use Drupal\subrequests\SubrequestsTree;
use JsonSchema\Constraints\Constraint;
use JsonSchema\Validator;
use Psr\Log\LoggerInterface;
use Symfony\Component\HttpKernel\Exception\BadRequestHttpException;
......@@ -184,7 +185,7 @@ class JsonBlueprintDenormalizer implements DenormalizerInterface, SerializerAwar
$schema_path = dirname(dirname(__DIR__)) . '/schema.json';
$this->validator->validate($input, (object) ['$ref' => 'file://' . $schema_path]);
$this->validator->validate($input, (object) ['$ref' => 'file://' . $schema_path], Constraint::CHECK_MODE_TYPE_CAST);
if (!$this->validator->isValid()) {
// Log any potential errors.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment