checkConfigSchema() gives unclear error if top-level config type is wrong

Created on 18 February 2022, over 2 years ago
Updated 19 July 2023, about 1 year ago

Problem/Motivation

checkConfigSchema() has very good docs:

    // We'd like to verify that the top-level type is either config_base,
    // config_entity, or a derivative. The only thing we can really test though
    // is that the schema supports having langcode in it. So add 'langcode' to
    // the data if it doesn't already exist.

However, if this check fails, the exception message is really unclear:

> Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for graphapi.graphviz with the following errors: graphapi.graphviz:_core missing schema, graphapi.graphviz:langcode missing schema

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Release notes snippet

πŸ› Bug report
Status

Needs work

Version

11.0 πŸ”₯

Component
ConfigurationΒ  β†’

Last updated 1 day ago

Created by

πŸ‡¬πŸ‡§United Kingdom joachim

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024