Skip to content
Snippets Groups Projects
Commit 107c9ae3 authored by Omkar Deshpande's avatar Omkar Deshpande
Browse files

remove library check.

parent 5240d8d3
No related branches found
No related tags found
No related merge requests found
Pipeline #273358 passed
......@@ -15,10 +15,6 @@ abstract class AdapterBase extends PluginBase implements AdapterInterface {
public function addInput(string $input, mixed $value): AdapterBase {
if (array_key_exists($input, $this->getInputs())) {
$json_schema_type = $this->getInputs()[$input];
// Check if the library class exists
if (!class_exists('JsonSchema\Validator')) {
throw new \LogicException('justinrainbow/json-schema is required as a composer dependency.');
}
// @see \Drupal\Core\Theme\Component\ComponentValidator
if (!$this->validateConformanceToJsonSchemaType($json_schema_type, $value)) {
throw new \LogicException('…');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment