{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/perfdelta/json-schema/perfdelta-report-details-schema.json",
  "title": "ReportDetails",
  "description": "Full report. Nested objects are documented on https://perfdelta.com/api-docs and may gain fields.",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/perfdelta-openapi.json#/components/schemas/ReportDetails",
  "type": "object",
  "properties": {
    "scan_id": {
      "type": "string"
    },
    "domain": {
      "type": "string"
    },
    "status": {
      "type": "string"
    },
    "measured_at": {
      "type": "string"
    },
    "report_url": {
      "type": "string"
    },
    "complete": {
      "type": "boolean"
    },
    "summary": {
      "type": "object",
      "additionalProperties": true
    },
    "origin_field_data_phone": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "origin_field_data_desktop": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "competitors": {
      "type": [
        "array",
        "object",
        "null"
      ]
    },
    "pages": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "third_party_recommendations": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    },
    "tech_stack": {
      "type": [
        "array",
        "object",
        "null"
      ]
    },
    "ai_readiness": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "delivery": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": true
    },
    "ai_recommendations": {
      "type": "array"
    },
    "notes": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Note"
      }
    },
    "history": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": true
      }
    }
  },
  "required": [
    "scan_id",
    "status"
  ],
  "additionalProperties": true,
  "$defs": {
    "Note": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer"
        },
        "note": {
          "type": "string"
        },
        "created_at": {
          "type": "string"
        }
      }
    }
  }
}