simplify model from function composition to array definition. Delete ValidationDef class