unitxt
unitxt copied to clipboard
Checking types of initialization values passed to artifacts
Today, artifacts can be initialized with members of any type regarding of the definition. For example, the "card" attribute can be initialized by any type.
Error checking is done sporadically and requires specific error checking on each field and drafting an error message.
We should have a generic check to see that the type of the attribute meets the defined types.
Or at least have a method in artificat like verify_type(["metrics","card",..."). That would check specfied fields. .