[Allow Multiple Value] Unable to add required prop in the editor while creating code component
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3587592. --> Reported by: [neha_bawankar](https://www.drupal.org/user/3847785) Related to !1011 !1007 >>> <h3 id="overview">Overview</h3> <p>Users are unable to add a required property of type Date and time. </p> <h3>Steps to Reproduce</h3> <ol> <li>Create a code component</li> <li>Add a prop of type : Date and time select Date and time </li> <li>Mark it Allow multiple value - Unlimited</li> <li>Mark it as required - Example value as - 25/01/2026, 17:30</li> <li>Add to component</li> <li>Error : Failed to add to components</li> </ol> <p><code>An error (HTTP 422) occurred while adding to components. Please check the browser console for more details.</code></p> <p>Console : </p> <div class="codeblock"> <pre><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br></span><span style="color: #007700">{</span><span style="color: #0000BB">status</span><span style="color: #007700">: </span><span style="color: #DD0000">'422'</span><span style="color: #007700">, </span><span style="color: #0000BB">errors</span><span style="color: #007700">: {</span><span style="color: #0000BB">&hellip;</span><span style="color: #007700">}, </span><span style="color: #0000BB">message</span><span style="color: #007700">: </span><span style="color: #DD0000">'Multiple-cardinality prop "multiRequired" is required, but does not specify `minItems: 1`.'</span><span style="color: #007700">}<br></span><span style="color: #0000BB">errors</span><span style="color: #007700">: <br>&nbsp; </span><span style="color: #0000BB">errors</span><span style="color: #007700">: Array(</span><span style="color: #0000BB">1</span><span style="color: #007700">)<br>&nbsp;&nbsp;&nbsp; </span><span style="color: #0000BB">0</span><span style="color: #007700">: <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #0000BB">detail</span><span style="color: #007700">: </span><span style="color: #DD0000">"Multiple-cardinality prop "</span><span style="color: #0000BB">multiRequired</span><span style="color: #DD0000">" is required, but does not specify `minItems: 1`."<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; </span><span style="color: #0000BB">source</span><span style="color: #007700">: {</span><span style="color: #0000BB">pointer</span><span style="color: #007700">: </span><span style="color: #DD0000">''</span><span style="color: #007700">}<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; [[</span><span style="color: #0000BB">Prototype</span><span style="color: #007700">]]:</span><span style="color: #0000BB">Object<br>&nbsp;&nbsp;&nbsp; length</span><span style="color: #007700">: </span><span style="color: #0000BB">1<br>&nbsp;&nbsp;&nbsp; </span><span style="color: #007700">[[</span><span style="color: #0000BB">Prototype</span><span style="color: #007700">]]: Array(</span><span style="color: #0000BB">0</span><span style="color: #007700">)<br>&nbsp; [[</span><span style="color: #0000BB">Prototype</span><span style="color: #007700">]]: </span><span style="color: #0000BB">Object<br>message</span><span style="color: #007700">: </span><span style="color: #DD0000">"Multiple-cardinality prop "</span><span style="color: #0000BB">multiRequired</span><span style="color: #DD0000">" is required, but does not specify `minItems: 1`."<br></span><span style="color: #0000BB">status</span><span style="color: #007700">: </span><span style="color: #DD0000">"422"<br></span><span style="color: #0000BB">?&gt;</span></span></pre></div> > Related issue: [Issue #3516754](https://www.drupal.org/node/3516754)
issue