{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/drillerdb-com/json-schema/drillerdb-com-well-depth-result-schema.json",
  "title": "WellDepthResult",
  "x-generated": "2026-11-06",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/drillerdb-com-openapi.json#/components/schemas/WellDepthResult",
  "type": "object",
  "properties": {
    "well_count": {
      "type": "integer",
      "description": "Recorded wells inside the radius."
    },
    "swl_count": {
      "type": "integer",
      "description": "Of those, wells with a static water level."
    },
    "radius_km": {
      "type": "number"
    },
    "radius_mi": {
      "type": "number"
    },
    "expanded_radius": {
      "type": "boolean",
      "description": "True when the search widened to find enough wells."
    },
    "depth_unit": {
      "type": "string",
      "enum": [
        "ft"
      ]
    },
    "depth_min": {
      "type": [
        "number",
        "null"
      ]
    },
    "depth_max": {
      "type": [
        "number",
        "null"
      ]
    },
    "depth_p25": {
      "type": [
        "number",
        "null"
      ]
    },
    "depth_p50": {
      "type": [
        "number",
        "null"
      ],
      "description": "Median well depth, feet."
    },
    "depth_p75": {
      "type": [
        "number",
        "null"
      ]
    },
    "has_swl": {
      "type": "boolean"
    },
    "swl_p25": {
      "type": [
        "number",
        "null"
      ]
    },
    "swl_p50": {
      "type": [
        "number",
        "null"
      ],
      "description": "Median static water level (water table), feet below ground."
    },
    "swl_p75": {
      "type": [
        "number",
        "null"
      ]
    },
    "top_aquifer": {
      "type": [
        "string",
        "null"
      ]
    },
    "nearby": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NearbyWell"
      }
    },
    "cached_at": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "well_count",
    "swl_count",
    "radius_km",
    "radius_mi",
    "expanded_radius",
    "depth_unit",
    "depth_min",
    "depth_max",
    "depth_p25",
    "depth_p50",
    "depth_p75",
    "has_swl",
    "swl_p25",
    "swl_p50",
    "swl_p75",
    "top_aquifer",
    "nearby",
    "cached_at"
  ],
  "$defs": {
    "NearbyWell": {
      "type": "object",
      "properties": {
        "distance_mi": {
          "type": [
            "number",
            "null"
          ]
        },
        "depth_ft": {
          "type": [
            "number",
            "null"
          ]
        },
        "swl_ft": {
          "type": [
            "number",
            "null"
          ],
          "description": "Static water level below ground, feet."
        },
        "yield_gpm": {
          "type": [
            "number",
            "null"
          ]
        },
        "year": {
          "type": [
            "integer",
            "null"
          ]
        },
        "county": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "required": [
        "distance_mi",
        "depth_ft",
        "swl_ft",
        "yield_gpm",
        "year",
        "county"
      ]
    }
  }
}