Problem/Motivation

Discovered in #3324140: Convert field_storage_config and field_config's form validation logic to validation constraints.

In Drupal 10.0.0, one can define validation constraints in the config schema as much as you want, Drupal will not fail. It simply ignores everything under constraints, rather than at least verifying that the constraints specified actually exist 😱

Steps to reproduce

Add

constraints:
  Nonsense: []

to any part of the config schema, and observe that Drupal happily continues to pass all tests.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

Comments

Wim Leers created an issue. See original summary.

wim leers’s picture

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 11.x-dev » main

Drupal core is now using the main branch as the primary development branch. New developments and disruptive changes should now be targeted to the main branch.

Read more in the announcement.