Validation Rules for Number/Integer Multi-Value Props
>>> [!note] Migrated issue
<!-- Drupal.org comment -->
<!-- Migrated from issue #3583303. -->
Reported by: [vipin.mittal18](https://www.drupal.org/user/319716)
Related to !925 !873
>>>
<h3>Description</h3>
<p>Define and enforce validation rules for Number and Integer props within the Code Component Editor to ensure correct data handling and consistency.</p>
<p><strong>Number Prop:</strong></p>
<ul>
<li>Accepts positive numbers</li>
<li>Accepts negative numbers</li>
<li>Accepts floating-point (decimal) values</li>
</ul>
<p><strong>Integer Prop:</strong></p>
<ul>
<li>Accepts positive integers</li>
<li>Accepts negative integers</li>
<li>Does not accept floating-point (decimal) values</li>
</ul>
<h3>Acceptance Criteria</h3>
<ul>
<li>Number prop accepts positive integers (e.g., 10)</li>
<li>Number prop accepts negative integers (e.g., -10)</li>
<li>Number prop accepts floating-point values (e.g., 10.5, -3.14)</li>
<li>Number prop rejects exponential notation (e.g., 1e3, -2.5e-2).</li>
<li>Integer prop accepts positive integers (e.g., 10)</li>
<li>Integer prop accepts negative integers (e.g., -10)</li>
<li>Integer prop rejects floating-point values (e.g., 10.5, -3.14)</li>
<li>Integer prop rejects exponential notation (e.g., 1e3, -2.5e-2).</li>
<li>No regression in existing functionality</li>
</ul>
issue