{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buckheadenergy-com/json-schema/buckheadenergy-com-county-list-envelope-schema.json",
  "title": "CountyListEnvelope",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buckheadenergy-com-openapi.json#/components/schemas/CountyListEnvelope",
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "maxItems": 25,
      "items": {
        "type": "object",
        "properties": {
          "recentPermitCount": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Absent while the state's drilling counts are held."
          },
          "recentSpudCount": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Absent while the state's drilling counts are held."
          },
          "drillingHeld": {
            "type": [
              "object",
              "null"
            ],
            "description": "Held marker (held, reason, note, since, regulator) on each row of a held state.",
            "properties": {
              "held": {
                "$ref": "#/$defs/held"
              },
              "reason": {
                "$ref": "#/$defs/reason"
              },
              "note": {
                "$ref": "#/$defs/note"
              },
              "since": {
                "type": "string"
              },
              "regulator": {
                "type": "object"
              }
            }
          }
        }
      }
    },
    "meta": {
      "allOf": [
        {
          "$ref": "#/$defs/Meta"
        }
      ],
      "type": "object",
      "description": "held / reason / note are present when the state's permit and spud counts are held; rows then omit recentPermitCount and recentSpudCount.",
      "properties": {
        "held": {
          "$ref": "#/$defs/held"
        },
        "reason": {
          "$ref": "#/$defs/reason"
        },
        "note": {
          "$ref": "#/$defs/note"
        }
      }
    }
  },
  "$defs": {
    "Meta": {
      "type": "object",
      "properties": {
        "apiVersion": {
          "type": "string"
        },
        "dataAsOf": {
          "type": [
            "string",
            "null"
          ],
          "format": "date",
          "description": "Date the underlying metrics were last refreshed"
        },
        "source": {
          "type": "string",
          "description": "Attribution"
        }
      }
    }
  }
}