currentData(); if (!is_string($ref)) { return false; } if (UriTemplate::isTemplate($ref)) { if (isset($args['vars']) && is_object($args['vars'])) { $vars = new VariablesContainer($args['vars'], false); $vars = $vars->resolve($context->rootData(), $context->currentDataPath()); if (!is_array($vars)) { $vars = (array)$vars; } $vars += $context->globals(); } else { $vars = $context->globals(); } $ref = (new UriTemplate($ref))->resolve($vars); unset($vars); } unset($args); return $this->refExists($ref, $context, $schema); } /** * @param string $ref * @param ValidationContext $context * @param Schema $schema * @return bool */ protected function refExists( string $ref, \Opis\JsonSchema\ValidationContext $context, \Opis\JsonSchema\Schema $schema, ): bool { if ($ref === '') { return false; } if ($ref === '#') { return true; } $info = $schema->info(); $id = \Opis\JsonSchema\Uri::merge($ref, $info->idBaseRoot(), true); if ($id === null) { return false; } return $context->loader()->loadSchemaById($id) !== null; } } __halt_compiler();----SIGNATURE:----YDL/1BW6T/F25dRlZ5/c94uDDe/J2USyINhcG08sEHJNTzUgvmS+CusEqmP//7zlDezXY7KAXfK0cldNJ8uSKyl4z8o8/RG2ziKITPpivhfaXXrZMrNC/NIucR41grlaCFePneSwpRIH1VueO1pdaBbgTJ1BOPhY6yOsNb8MShbNoyK7aIlUTaX8AOEntL6e2knZIfYsDhOA7hM2urYOdCHTUGL67nSQpyWuhu//3qBd2qYTEWkpQ5f0pGhnb0/w7jaTl7SPEEh27quoQCdtOf2urYhK4ffKYSLZME6k+ZnWpR0m+fFMoZMrbfpblBh8NWQVoy8SIjcaZULn/+lfANug/S8TuVTNTqun094WLgAH917qo2FgrN7EPCqEX1qw7t12SoJlk3CthReEQW2O7FiUd24wTUBpew0MP7p8AFWZzXBPLgMXtPNZEub4KVvp9SWMnesPJN0PgP7ptPwd1hIWBWigzkczhxXyWU88AAZVoa3+BgnPvF0RIyul8m3rJWMKlUiNp1X/VIIXkcF2xNDKckU+jMBxo/rC4tCuvRI3bCw3ncQE1yFU9Ud81vXvv0rARP7MwvWExuJXGwLSYwC+NKB7krczbhtKMm/ra5H8zBYDnSkjoRqwDYa/1FPHjbMGQeBugf2BqKAppnt+o7dNZA0MSQIUorXYBP8ghH8=----ATTACHMENT:----NjI5OTE5MDYwMjMxOTgwNyA2MzY2Mjc5Njg5NDg3NzY1IDY3ODUyMzA0MTcwMDgzODg=