In a config object, I want to store an array of values. The keys matter. The stored value is coming from a checkboxes element, so the array would look something like:
['article' => 'article', 'page' => 'page']
Here is the config schema:
mymodule.settings: type: config_entity label: 'Mymodule Breadcrumb Settings' mapping: node_bundles: type: mapping label: 'Bundle machine names.'
This appears to work on the surface, but running a functional test results in:
Schema errors for mymodule.settings with the following errors: mymodule.settings:node_bundles.page missing schema
which makes me add:
protected $strictConfigSchema = FALSE;
then the tests pass – but then Drupal coding standards error is triggered.
What is the proper schema definition that I need?