{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/revyl/json-schema/revyl-atlas-annotation-anchor-preview-response-schema.json",
  "title": "AtlasAnnotationAnchorPreviewResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/revyl-app-atlas-api-openapi.yml#/components/schemas/AtlasAnnotationAnchorPreviewResponse",
  "properties": {
    "evidence": {
      "anyOf": [
        {
          "$ref": "#/$defs/GroundingEvidence"
        },
        {
          "type": "null"
        }
      ]
    },
    "normalized_x": {
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Normalized X",
      "type": "number"
    },
    "normalized_y": {
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Normalized Y",
      "type": "number"
    },
    "observation_id": {
      "title": "Observation Id",
      "type": "string"
    },
    "pixel_x": {
      "minimum": 0.0,
      "title": "Pixel X",
      "type": "integer"
    },
    "pixel_y": {
      "minimum": 0.0,
      "title": "Pixel Y",
      "type": "integer"
    },
    "screenshot_height": {
      "exclusiveMinimum": 0.0,
      "title": "Screenshot Height",
      "type": "integer"
    },
    "screenshot_width": {
      "exclusiveMinimum": 0.0,
      "title": "Screenshot Width",
      "type": "integer"
    }
  },
  "required": [
    "observation_id",
    "pixel_x",
    "pixel_y",
    "normalized_x",
    "normalized_y",
    "screenshot_width",
    "screenshot_height"
  ],
  "type": "object",
  "$defs": {
    "GroundingBoundingBox": {
      "properties": {
        "x_max": {
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "X Max",
          "type": "number"
        },
        "x_min": {
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "X Min",
          "type": "number"
        },
        "y_max": {
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Y Max",
          "type": "number"
        },
        "y_min": {
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Y Min",
          "type": "number"
        }
      },
      "required": [
        "x_min",
        "y_min",
        "x_max",
        "y_max"
      ],
      "title": "GroundingBoundingBox",
      "type": "object"
    },
    "GroundingEvidence": {
      "properties": {
        "bounding_box": {
          "anyOf": [
            {
              "$ref": "#/$defs/GroundingBoundingBox"
            },
            {
              "type": "null"
            }
          ]
        },
        "confidence": {
          "maximum": 1.0,
          "minimum": 0.0,
          "title": "Confidence",
          "type": "number"
        },
        "found": {
          "title": "Found",
          "type": "boolean"
        },
        "matched_element_description": {
          "anyOf": [
            {
              "maxLength": 1000,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Matched Element Description"
        },
        "reason": {
          "anyOf": [
            {
              "maxLength": 2000,
              "minLength": 1,
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Reason"
        }
      },
      "required": [
        "found",
        "confidence"
      ],
      "title": "GroundingEvidence",
      "type": "object"
    }
  }
}