{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/buckheadenergy-com/json-schema/buckheadenergy-com-formation-envelope-schema.json",
  "title": "FormationEnvelope",
  "x-generated": "2026-11-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/buckheadenergy-com-openapi.json#/components/schemas/FormationEnvelope",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "properties": {
        "formation": {
          "type": "object",
          "properties": {
            "state": {
              "type": "string"
            },
            "formationSlug": {
              "type": "string"
            },
            "formationName": {
              "type": "string"
            },
            "wellCount": {
              "type": "integer"
            },
            "activeOperators": {
              "type": "integer"
            },
            "recentPermits24Mo": {
              "type": "integer",
              "description": "Absent when the state's drilling counts are held (see held)."
            },
            "primaryCounties": {},
            "topOperators": {},
            "dataAsOf": {
              "type": [
                "string",
                "null"
              ]
            },
            "held": {
              "$ref": "#/$defs/held"
            },
            "reason": {
              "$ref": "#/$defs/reason"
            },
            "note": {
              "$ref": "#/$defs/note"
            }
          }
        }
      }
    },
    "meta": {
      "$ref": "#/$defs/Meta"
    }
  },
  "$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"
        }
      }
    }
  }
}