"{\"event\":\"{\\\"schema\\\":\\\"cotydq\\\"}\",\"results\":[{\"group\":\"Common Coty data quality definitions\",\"results\":[{\"check\":{\"name\":\"name_is_consistent\",\"description\":\"Name si consistent\",\"solutionUrl\":\"https://cotypbb2b.atlassian.net/wiki/spaces/GO/pages/9581690945/General+Analytics+Data+Quality\",\"impact\":\"blocker\",\"filter\":\"get-key(., \\\"schema\\\") and .schema == \\\"cotydq\\\"\",\"keywords\":[],\"check\":\"all([ for(.data) if(size(.productInfo) > 0) flatten([ for(.productInfo) size(.name) > 0 ]) else true ])\"},\"result\":\"fail\"}]},{\"group\":\"Common data quality definitions\",\"results\":[]}],\"checks\":[[{\"name\":\"name_is_consistent\",\"description\":\"Name si consistent\",\"solutionUrl\":\"https://cotypbb2b.atlassian.net/wiki/spaces/GO/pages/9581690945/General+Analytics+Data+Quality\",\"impact\":\"blocker\",\"filter\":\"get-key(., \\\"schema\\\") and .schema == \\\"cotydq\\\"\",\"keywords\":[],\"check\":\"all([ for(.data) if(size(.productInfo) > 0) flatten([ for(.productInfo) size(.name) > 0 ]) else true ])\"},{\"name\":\"has_valid_atc_button_type\",\"description\":\"Valid valuue for atcButtonType\",\"solutionUrl\":\"https://cotypbb2b.atlassian.net/wiki/spaces/GO/pages/9581690945/General+Analytics+Data+Quality\",\"impact\":\"blocker\",\"filter\":\"is-array(.data) and get-key(.data[0], \\\"event\\\") and any([for(.data) .event == \\\"add-to-cart\\\"])\",\"keywords\":[],\"check\":\"all([for (.data) if (.event == \\\"add-to-cart\\\") all([for(.productInfo) contains(.atcbuttonType, [\\\"single\\\", \\\"static\\\", \\\"static all\\\", \\\"static single\\\"])]) else true])\"},{\"name\":\"is_valid_bundle\",\"description\":\"All bundle data is set correctly\",\"solutionUrl\":\"https://cotypbb2b.atlassian.net/wiki/spaces/GO/pages/9581690945/General+Analytics+Data+Quality\",\"impact\":\"blocker\",\"filter\":\"any([for (.data) size(.productInfo) > 1])\",\"keywords\":[],\"check\":\"all([ for (.data) if(size(.productInfo) > 1) all([ for (.productInfo) if(capture(.badge, \\\"~(?[0-9]+)$\\\").itemIdx > 1) not(is-string(.badge)) else true]) and all([for (.productInfo) starts-with(.bundleItemNumber, .bundleMainId)]) and all([for (.productInfo) is-boolean(.isBundle)]) and if (contains(.event, [\\\"prodview-impression\\\", \\\"product-click\\\"])) .productInfo[0].subcategory == \\\"bundle\\\" or .productInfo[0].variant_type == \\\"bundle\\\" or .productInfo[0].noProductsInGroup+1 == size(.productInfo) else true else true])\"}],[{\"name\":\"has_event_name\",\"description\":\"Event has an event name\",\"solutionUrl\":\"https://docs.infotrust.com/solution-to-problem-described-here\",\"impact\":\"blocker\",\"filter\":\"get-key(., \\\"event_name\\\")\",\"keywords\":[],\"check\":\"get-key(., \\\"event_name\\\") != null\"},{\"name\":\"has_valid_id\",\"description\":\"Product view must have a valid ID\",\"solutionUrl\":\"https://docs.infotrust.com/solution-to-problem-described-here\",\"impact\":\"blocker\",\"filter\":\"get-key(., \\\"productId\\\") and size(.productId) and is-integer(.productId)\",\"keywords\":[],\"check\":\"size(string(.productId)) > 6 and is-integer(.productId)\"}]]}"