Run config validation for config schema types opted in to be fully validatable

Created on 12 December 2023, 12 months ago
Updated 5 January 2024, 11 months ago

Problem/Motivation

This is a follow-up to πŸ› Follow-up for #3361534: config validation errors can still occur for contrib modules, disrupting contrib Active and πŸ“Œ KernelTestBase::$strictConfigSchema = TRUE and BrowserTestBase::$strictConfigSchema = TRUE do not actually strictly validate Fixed , per #3364109-49: Configuration schema & required values: add test coverage for `nullable: true` validation support β†’ .

Once πŸ“Œ Configuration schema & required values: add test coverage for `nullable: true` validation support Fixed lands, we'll have a reliable mechanism to detect which config schema types (i.e. simple config objects or config entity types) are fully validatable.

The changes πŸ› Follow-up for #3361534: config validation errors can still occur for contrib modules, disrupting contrib Active made should still be respected: we do NOT want config validation to be executed for every contrib module.

But we DO want run config validation for contrib modules when:

  • validating a config schema type that has the FullyValidatable constraint
  • that means that public function checkConfigSchema(TypedConfigManagerInterface $typed_config, $config_name, $config_data … has the FullyValidatable constraint as one of the values of $typed_config->getConstraints()

Steps to reproduce

N/A

Proposed resolution

TBD

Remaining tasks

TBD

User interface changes

TBD

API changes

TBD

Data model changes

TBD

Release notes snippet

TBD

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component
ConfigurationΒ  β†’

Last updated 7 days ago

Created by

πŸ‡§πŸ‡ͺBelgium wim leers Ghent πŸ‡§πŸ‡ͺπŸ‡ͺπŸ‡Ί

Live updates comments and jobs are added and updated live.
  • Contributed project blocker

    It denotes an issue that prevents porting of a contributed project to the stable version of Drupal due to missing APIs, regressions, and so on.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024