Update data format in spec from hash to array