Schema of configuration files is invalid
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3572762. -->
Reported by: [philipnorton42](https://www.drupal.org/user/545978)
Related to !11 !10
>>>
<h3 id="summary-problem-motivation">Problem/Motivation</h3>
<p>Whilst working testing on some recipes today I noticed that the schema file for this module is not valid. The mapping for roles is of type "checkboxes", which isn't a valid property in schema documents.</p>
<h4 id="summary-steps-reproduce">Steps to reproduce</h4>
<p>I was running a functional test for a recipe and this issue came to light. </p>
<h3 id="summary-proposed-resolution">Proposed resolution</h3>
<p>I've fixed this by changing the schema type to "string", which matches how some other role configurations work in Drupal. In addition to this I also needed to set the default configuration file to store strings (ie. instead of 0 it is '0').</p>
<p>This allowed the test I was working on to pass.</p>
<p>I'll get a MR in asap for this :)</p>
<h3 id="summary-remaining-tasks">Remaining tasks</h3>
<p>I'm assuming that tests will pass with this in place. I'll create an MR and investigate if they don't.</p>
<h3 id="summary-ui-changes">User interface changes</h3>
<p>n/a</p>
<h3 id="summary-api-changes">API changes</h3>
<p>n/a</p>
<h3 id="summary-data-model-changes">Data model changes</h3>
<p>This shouldn't effect the model. Role machine names are strings.</p>
issue