If a parameter has '"type": "number"', VisualEditor should not allow the user to insert other kind of values. Alternativelly, it could just warn the user but still allow a value of the wrong type to be inserted.
This should not be restricted just to the "number" type. Other types would also benefity from some validation (e.g., if at some point we have a type "string/image-name", VE should check if the user provided the name of an existing image).
Version: unspecified
Severity: enhancement
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=52652