{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudflare/main/json-schema/cloudflare-config-response-schema.json",
  "title": "ConfigResponse",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudflare-configurations-api-openapi.yml#/components/schemas/ConfigResponse",
  "type": "object",
  "properties": {
    "result": {
      "$ref": "#/$defs/HyperdriveConfig"
    },
    "success": {
      "type": "boolean"
    },
    "errors": {
      "type": "array",
      "items": {
        "type": "object"
      }
    },
    "messages": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  },
  "$defs": {
    "HyperdriveConfig": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "The unique identifier."
        },
        "name": {
          "type": "string",
          "description": "The name of the configuration."
        },
        "origin": {
          "type": "object",
          "properties": {
            "scheme": {
              "type": "string",
              "description": "The database protocol."
            },
            "host": {
              "type": "string",
              "description": "The database host."
            },
            "port": {
              "type": "integer",
              "description": "The database port."
            },
            "database": {
              "type": "string",
              "description": "The database name."
            },
            "user": {
              "type": "string",
              "description": "The database user."
            }
          }
        },
        "caching": {
          "type": "object",
          "properties": {
            "disabled": {
              "type": "boolean",
              "description": "Whether caching is disabled."
            },
            "max_age": {
              "type": "integer",
              "description": "Maximum cache age in seconds."
            },
            "stale_while_revalidate": {
              "type": "integer",
              "description": "Stale-while-revalidate window in seconds."
            }
          }
        }
      }
    }
  }
}