{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openvisual.org/schema/floaters/1.0",
  "title": "OVS: Floaters",
  "description": "Perception of vitreous debris as moving shapes. Common in PVD, myopia, VSS, and normal aging.",
  "allOf": [
    { "$ref": "https://openvisual.org/schema/symptom-base/1.0" },
    {
      "type": "object",
      "properties": {
        "ovs_type":         { "const": "ovs:floaters" },
        "count":            { "type": "integer", "minimum": 0, "description": "Number of floater particles" },
        "min_size":         { "type": "number",  "minimum": 0, "maximum": 1, "description": "Minimum floater size (normalized)" },
        "max_size":         { "type": "number",  "minimum": 0, "maximum": 1, "description": "Maximum floater size (normalized)" },
        "alpha":            { "type": "number",  "minimum": 0, "maximum": 1, "description": "Floater opacity" },
        "color_rgba":       { "type": "string",  "description": "Floater tint color" },
        "shape":            { "type": "string",  "enum": ["circle", "worm", "cluster"], "description": "Dominant floater morphology" },
        "brownian_strength":{ "type": "number",  "minimum": 0, "maximum": 1, "description": "Random drift intensity" }
      }
    }
  ]
}
