Problem/Motivation
The css_usage_analyzer.settings config object ships with no schema definition. Running drush config:inspect --detail --only-error after enabling the module surfaces:
----------------------------- ----------- ------------- ------
Key Status Validatable Data
----------------------------- ----------- ------------- ------
css_usage_analyzer.settings No schema
----------------------------- ----------- ------------- ------
Steps to reproduce
- Install Drupal 11.3.12.
- Run:
drush en -y css_usage_analyzer
- Run:
drush config:inspect --detail --only-error
Expected
No errors. css_usage_analyzer.settings should be listed with a valid schema status
Actual
----------------------------- ----------- ------------- ------
Key Status Validatable Data
----------------------------- ----------- ------------- ------
css_usage_analyzer.settings No schema
----------------------------- ----------- ------------- ------
Proposed resolution
Add config/schema/css_usage_analyzer.schema.yml to the module with a mapping that covers all keys written to css_usage_analyzer.settings.
Comments
Comment #3
dkmishra commentedComment #4
schillerm commentedHi, I just tested and reviewed this MR. Works as expected, no errors showing for css_usage_analyzer.settings. Code/yml changes are straight forward and make sense to me. Moving to RTBC.