Commit 6bf4efcd authored by Stephanie Cunnane's avatar Stephanie Cunnane
Browse files

Bug 1880212 - Update search-telemetry-v2 schema as part of SERP categorization...

Bug 1880212 - Update search-telemetry-v2 schema as part of SERP categorization work. r=jteow, a=RyanVM

Differential Revision: https://phabricator.services.mozilla.com/D205250
parent 18aeda34
Loading
Loading
Loading
Loading
+19 −1
Original line number Diff line number Diff line
@@ -342,7 +342,7 @@
              "description": "The query to inspect all elements on the SERP."
            },
            "method": {
              "enum": ["data-attribute"],
              "enum": ["dataAttribute"],
              "description": "The extraction method used for the query."
            },
            "options": {
@@ -375,12 +375,30 @@
                "queryParamKey": {
                  "type": "string",
                  "description": "The query parameter key to inspect in the href."
                },
                "queryParamValueIsHref": {
                  "type": "boolean",
                  "description": "Whether the query param value is expected to contain an href."
                }
              },
              "required": ["queryParamKey"]
            }
          },
          "required": ["selectors", "method"]
        },
        {
          "type": "object",
          "properties": {
            "selectors": {
              "type": "string",
              "description": "The query to use to inspect all elements on the SERP."
            },
            "method": {
              "enum": ["textContent"],
              "description": "The extraction method to use for the query."
            }
          },
          "required": ["selectors", "method"]
        }
      ]
    },