unitxt icon indicating copy to clipboard operation
unitxt copied to clipboard

Checking types of initialization values passed to artifacts

Open yoavkatz opened this issue 1 year ago • 0 comments

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. .

yoavkatz avatar Aug 12 '24 05:08 yoavkatz