chromium/content/test/data/attribution_reporting/interop/parse_failures.json

{
  "description": "Invalid source/trigger registrations are dropped",
  "input": {
    "registrations": [
      {
        "timestamp": "1",
        "registration_request": {
          "context_origin": "https://destination.test"
        },
        "responses": [
          {
            "url": "https://reporter.test/register-trigger",
            "response": {
              "Attribution-Reporting-Info": "report-header-errors",
              "Attribution-Reporting-Register-Trigger": {
                // dictionary instead of list
                "event_trigger_data": {}
              }
            }
          }
        ]
      },
      {
        "timestamp": "2",
        "registration_request": {
          "context_origin": "https://source.test",
          "Attribution-Reporting-Eligible": "navigation-source"
        },
        "responses": [
          {
            "url": "https://reporter.test/register-source",
            "response": {
              "Attribution-Reporting-Info": "report-header-errors",
              "Attribution-Reporting-Register-Source": {
               "destination": "https://destination.test",
               // filter data using reserved key
               "filter_data": {
                 "_some_key": ["123", "456"]
               }
              }
            }
          }
        ]
      },
      {
        "timestamp": "3",
        "registration_request": {
          "context_origin": "https://destination.test"
        },
        "responses": [
          {
            "url": "https://reporter.test/register-trigger",
            "response": {
              "Attribution-Reporting-Info": "report-header-errors",
              "Attribution-Reporting-Register-Trigger": {
                "event_trigger_data": [
                  {
                    // filters using reserved key
                    "filters": {
                      "_some_key": []
                    }
                  }
                ]
              }
            }
          }
        ]
      }
    ]
  },
  "output": {
    "reports": [
      {
        "payload": [{
           "body": {
              "context_site": "https://destination.test",
              "header": "Attribution-Reporting-Register-Trigger",
              "value": "{\"event_trigger_data\":{}}"
           },
           "type": "header-parsing-error"
        }],
        "report_time": "1",
        "report_url": "https://reporter.test/.well-known/attribution-reporting/debug/verbose"
      },
      {
        "payload": [{
           "body": {
              "context_site": "https://source.test",
              "header": "Attribution-Reporting-Register-Source",
              "value": "{\"destination\":\"https://destination.test\",\"filter_data\":{\"_some_key\":[\"123\",\"456\"]}}"
           },
           "type": "header-parsing-error"
        }],
        "report_time": "2",
        "report_url": "https://reporter.test/.well-known/attribution-reporting/debug/verbose"
      },
      {
        "payload": [{
           "body": {
              "context_site": "https://destination.test",
              "header": "Attribution-Reporting-Register-Trigger",
              "value": "{\"event_trigger_data\":[{\"filters\":{\"_some_key\":[]}}]}"
           },
           "type": "header-parsing-error"
        }],
        "report_time": "3",
        "report_url": "https://reporter.test/.well-known/attribution-reporting/debug/verbose"
      }
    ]
  }
}