{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openvisual.org/schema/tunnel-vision/1.0",
  "title": "OVS: Tunnel Vision",
  "description": "Peripheral visual field constriction. Characteristic of glaucoma and retinitis pigmentosa.",
  "allOf": [
    { "$ref": "https://openvisual.org/schema/symptom-base/1.0" },
    {
      "type": "object",
      "properties": {
        "ovs_type": { "const": "ovs:tunnel-vision" },
        "radius":   { "type": "number", "minimum": 0, "maximum": 1, "description": "Remaining central field radius. 1 = full field, 0 = complete tunnel" },
        "softness": { "type": "number", "minimum": 0, "maximum": 1, "description": "Edge feathering / gradient softness" }
      }
    }
  ]
}
