{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/screenrove-com/json-schema/screenrove-com-comparison-schema.json",
  "title": "Comparison",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/screenrove-com-openapi.json#/components/schemas/Comparison",
  "type": "object",
  "properties": {
    "report": {
      "type": "string",
      "description": "Markdown summary of the comparison between the two screens."
    },
    "screenA": {
      "type": "object",
      "description": "Details about the first screen.",
      "properties": {
        "id": {
          "type": "string"
        },
        "product": {
          "type": "string"
        },
        "productName": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "kind": {
          "$ref": "#/$defs/ScreenKind"
        },
        "screenType": {
          "type": "string"
        },
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        },
        "sectionCount": {
          "type": "integer"
        },
        "actionCount": {
          "type": "integer"
        },
        "imageUrl": {
          "type": "string"
        },
        "previewUrl": {
          "type": "string"
        }
      }
    },
    "screenB": {
      "type": [
        "object",
        "null"
      ],
      "description": "Details about the second screen (null if comparing against targetDescription).",
      "properties": {
        "id": {
          "type": "string"
        },
        "product": {
          "type": "string"
        },
        "productName": {
          "type": "string"
        },
        "title": {
          "type": "string"
        },
        "kind": {
          "$ref": "#/$defs/ScreenKind"
        },
        "screenType": {
          "type": "string"
        },
        "width": {
          "type": "integer"
        },
        "height": {
          "type": "integer"
        },
        "sectionCount": {
          "type": "integer"
        },
        "actionCount": {
          "type": "integer"
        },
        "imageUrl": {
          "type": "string"
        },
        "previewUrl": {
          "type": "string"
        }
      }
    },
    "targetDescription": {
      "type": "string",
      "description": "The target description if comparing against text instead of screenB."
    },
    "similarities": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "What the two screens have in common."
    },
    "differences": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "How the two screens differ."
    },
    "observations": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Design observations and takeaways from the comparison."
    }
  },
  "$defs": {
    "ScreenKind": {
      "type": "string",
      "description": "flow is an onboarding step, marketing a public web page, product an in-app screen.",
      "enum": [
        "flow",
        "marketing",
        "product"
      ]
    }
  }
}