{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/perfdelta/json-schema/perfdelta-fixes-schema.json",
  "title": "Fixes",
  "x-generated": "2026-12-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/perfdelta-openapi.json#/components/schemas/Fixes",
  "type": "object",
  "properties": {
    "status": {
      "type": "string"
    },
    "measured_at": {
      "type": "string"
    },
    "report_url": {
      "type": "string"
    },
    "platform": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ]
    },
    "field": {
      "type": "object",
      "additionalProperties": true
    },
    "fixes": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "resource": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          },
          "title": {
            "type": "string"
          },
          "problem": {
            "type": "string"
          },
          "action": {
            "type": "string"
          },
          "metrics": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "fails_in_field": {
            "type": "boolean"
          },
          "basis": {
            "type": "string",
            "enum": [
              "lab",
              "field"
            ]
          },
          "impact": {
            "type": "object",
            "additionalProperties": true
          },
          "devices": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "pages": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "files": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "url": {
                  "type": "string"
                },
                "wasted_bytes": {
                  "anyOf": [
                    {
                      "type": "integer"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "wasted_ms": {
                  "anyOf": [
                    {
                      "type": "number"
                    },
                    {
                      "type": "null"
                    }
                  ]
                },
                "estimated": {
                  "type": "boolean"
                }
              },
              "additionalProperties": true
            }
          },
          "guide_url": {
            "anyOf": [
              {
                "type": "string"
              },
              {
                "type": "null"
              }
            ]
          }
        },
        "additionalProperties": true
      }
    }
  },
  "required": [
    "status",
    "fixes"
  ]
}