{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-well-architected-tool/json-schema/amazon-well-architected-tool-get-lens-version-difference-output-schema.json",
  "title": "GetLensVersionDifferenceOutput",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-well-architected-tool-lenses-api-openapi.yml#/components/schemas/GetLensVersionDifferenceOutput",
  "type": "object",
  "properties": {
    "LensAlias": {
      "type": "string"
    },
    "LensArn": {
      "type": "string",
      "description": "The ARN for the lens."
    },
    "BaseLensVersion": {
      "type": "string",
      "description": "The base version of the lens."
    },
    "TargetLensVersion": {
      "type": "string",
      "description": "The target lens version for the lens."
    },
    "LatestLensVersion": {
      "type": "string",
      "description": "The latest version of the lens."
    },
    "VersionDifferences": {
      "$ref": "#/$defs/VersionDifferences"
    }
  },
  "$defs": {
    "PillarDifference": {
      "type": "object",
      "properties": {
        "PillarId": {
          "type": "string"
        },
        "PillarName": {
          "type": "string"
        },
        "DifferenceStatus": {
          "type": "string",
          "enum": [
            "UPDATED",
            "NEW",
            "DELETED"
          ],
          "description": "Indicates the type of change to the pillar."
        },
        "QuestionDifferences": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/QuestionDifference"
          },
          "description": "List of question differences."
        }
      }
    },
    "QuestionDifference": {
      "type": "object",
      "properties": {
        "QuestionId": {
          "type": "string"
        },
        "QuestionTitle": {
          "type": "string"
        },
        "DifferenceStatus": {
          "type": "string",
          "enum": [
            "UPDATED",
            "NEW",
            "DELETED"
          ],
          "description": "Indicates the type of change to the question."
        }
      }
    },
    "VersionDifferences": {
      "type": "object",
      "properties": {
        "PillarDifferences": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/PillarDifference"
          },
          "description": "The differences between the base and latest versions of the lens."
        }
      }
    }
  }
}