Problem/Motivation
Some elements saved in the module’s configuration object are not defined in the configuration schema. This triggers a warning during config export/import and in other operations that validate schema.
Schema errors for orejime.settings with the following errors:
orejime.settings:request_path missing schema,
orejime.settings:logo missing schema,
orejime.settings:implicit_consent missing schema,
orejime.settings:color missing schema.
These errors mean there is configuration that does not comply with its schema. This is not a fatal error, but it is recommended to fix these issues. For more information on configuration schemas, check out <a href="https://www.drupal.org/docs/drupal-apis/configuration-api/configuration-schemametadata">the documentation</a>.
Steps to reproduce
- Enable the module.
- Open the module’s admin form in the back office and save the configuration.
- Export configuration (e.g., via the UI or
drush cex).
The warning may also appear later during a configuration re-import (drush cim), when enabling another module (e.g., drush en some_module), or when saving configuration again in the back office.
Proposed resolution
- Add missing keys to the configuration schema:
request_pathlogocolor
- Remove the
implicit_consentelement, as it appears to no longer exist / be used.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork orejime-3541992
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
johnatas commentedI also just noticed that the mapping for
name,apps, andweightis missing in the category sequence.I’m adding a new commit to include this mapping, as well as proper type handling for
appsandweightin the config form submit.Comment #4
johnatas commentedComment #5
johnatas commentedComment #6
dhruv.mittal commentedReviewing it
Comment #7
dhruv.mittal commentedI can confirm this issue persists with provided steps to reproduce
and patch is able to resolve the issue.
Thanks for your contribution @johnatas
Moving it to RTBC
Comment #8
fabsgugu commentedThanks for the correction !
I've merged.
Comment #9
fabsgugu commentedComment #11
johnatas commentedThanks @fabsgugu for the merge.
Do you plan a new release soon with these changes?
Also, please don’t forget the credits ;)