Problem/Motivation
When running Functional tests that extend the mercury_editor.module, the below schema error is thrown.
Drupal\Core\Config\Schema\SchemaIncompleteException: Schema errors for mercury_editor.settings with the following errors: mercury_editor.settings:mobile_presets.0 missing schema, mercury_editor.settings:mobile_presets.1 missing schema, mercury_editor.settings:mobile_presets.2 missing schema, mercury_editor.settings:dialog_settings._defaults missing schema
Proposed resolution
Create a simple Functional test to validate the config schema
.
Remaining tasks
TBD
User interface changes
N/A
API changes
N/A
Data model changes
Issue fork mercury_editor-3491742
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
jrockowitz commentedFor example, you need could change
- to -
Comment #5
sethhill commentedThe MR should resolve schema structural errors. In reviewing, I noticed that the menu settings for Mercury behave differently from the dialog settings, in that menu is a string and dialog actually encodes/decodes YAML. I created #3494569: Groups config in mercury_editor.menu.settings should be YAML instead of string to update that, as the current behavior works. Converting to YAML decoding would allow greater detail in validating the schema and improve user experience.
Comment #6
jrockowitz commentedThis looks good to me. Did it pass config inspection?
BTW the
groupsin mercury_editor.menu.settings.yml could be changes from a string of YAML to sequence/mapping so that it is translatable.Comment #7
sethhill commentedThe schema passes in Config Inspection but I do see 1 data error reported on the summary screen for mercury_editor.settings. It does not, however, show any errors on the detail screen and others have reported this behavior with the module. I think we should merge in and report any new errors separately. Thanks for the review!
Comment #9
sethhill commentedComment #10
sethhill commented