AIT-Core icon indicating copy to clipboard operation
AIT-Core copied to clipboard

cmd.validate() fails if one of the arguments is an array

Open kmarwah opened this issue 3 years ago • 1 comments

ait.core.cmd.validate() fails if any argument is of type ait.core.dtype.ArrayType. The validate function behavior should be modified if ArgDefn.type == ArrayType(elemType) so that the elemType is compared to the list of primitive types.

kmarwah avatar Mar 16 '22 22:03 kmarwah

@kmarwah AIT generally does not recommend ArrayTypes for Commanding arguments. There may be some incidental support with the way datatypes are structured in the code, but its ultimately not a feature currently expected to be supported by Core. Did you have a specific use-case?

nttoole avatar Mar 18 '22 16:03 nttoole