{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openvisual.org/schema/glare/1.0",
  "title": "OVS: Glare",
  "description": "Starburst or glare around light sources. Common in cataract, VSS, and post-surgical conditions.",
  "allOf": [
    { "$ref": "https://openvisual.org/schema/symptom-base/1.0" },
    {
      "type": "object",
      "properties": {
        "ovs_type":      { "const": "ovs:glare" },
        "ray_count":     { "type": "integer", "minimum": 0, "description": "Number of starburst rays" },
        "size_fraction": { "type": "number",  "minimum": 0, "maximum": 1, "description": "Glare radius relative to visual field" },
        "color_rgba":    { "type": "string",  "description": "Glare tint color" },
        "intensity":     { "type": "number",  "minimum": 0, "maximum": 1, "description": "Overall glare strength" }
      }
    }
  ]
}
