aInvestigate if ComponentValidator should have soft dependency on justinrainbow/json-schema

Created on 4 October 2024, about 1 month ago

Problem/Motivation

In the parent issue 📌 Move JSON:API validation to a feature flag or separate module Active we put schema validation for jsonapi behind a feature flag. ComponentValidation does the same. We should investigate if this leads to performance issues the same as with jsonapi.

Drupal\Core\Theme\Component\ComponentValidator

That kinda does the same.

  /**
   * Sets the validator service if available.
   */
  public function setValidator(?Validator $validator = NULL): void {
    if ($validator) {
      $this->validator = $validator;
      return;
    }
    if (class_exists(Validator::class)) {
      $this->validator = new Validator();
    }
  }

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

Introduced terminology

API changes

Data model changes

Release notes snippet

📌 Task
Status

Active

Version

11.0 🔥

Component

theme system

Created by

🇳🇱Netherlands bbrala Netherlands

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024