For a struct field that is an array (char array or other), aas_validatepaths checks each entry in the array individually, instead of checking e.g. a full char array at once.
Thus, when a path contains an invalid character, only the single invalid character is displayed.
To fix, the structind loop should be a loop only when indeed it is a struct array, and possibly also for cell arrays (though for now they are not found to be present in the checked inputs).
For a struct field that is an array (char array or other), aas_validatepaths checks each entry in the array individually, instead of checking e.g. a full char array at once.
Thus, when a path contains an invalid character, only the single invalid character is displayed.
To fix, the structind loop should be a loop only when indeed it is a struct array, and possibly also for cell arrays (though for now they are not found to be present in the checked inputs).