Problem/Motivation
The media_duplicates.schema.yml file currently uses the schema type bool for several configuration keys. However, bool is not a valid configuration schema type in Drupal — the correct type is boolean.
As a result, schema validation tools (such as Config Inspector) report errors or warnings for otherwise valid Media Duplicates configuration.
Affected configuration keys
The following keys are affected:
restrict_duplicates
restrict_new_media_only
compare_within_bundle_only
Steps to reproduce
- Install and enable the Media Duplicates module.
- Navigate to Reports → Configuration inspector.
- Inspect the media_duplicates.settings configuration.
- Observe schema validation warnings related to invalid bool types.
Proposed resolution
A patch is attached that updates the schema types accordingly. This patch replaces the invalid bool schema type with the correct boolean type for the affected configuration keys in media_duplicates.schema.yml.
Remaining tasks
Review the patch.
User interface changes
API changes
Data model changes
| Comment | File | Size | Author |
|---|
Issue fork media_duplicates-3563721
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 #2
thefancywizard commentedAttaching patch.
Comment #3
anybodyThanks @thefancywizard could you turn this into a MR please instead of a patch?
Comment #4
anybodyCode-wise the fix is correct and I can confirm the issue. RTBC afterwards!
Comment #5
anybodyI did that.
Comment #8
anybody