{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/cloudflare/main/json-schema/cloudflare-config-input-schema.json",
  "title": "ConfigInput",
  "x-generated": "2026-10-03",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cloudflare-configurations-api-openapi.yml#/components/schemas/ConfigInput",
  "type": "object",
  "required": [
    "name",
    "origin"
  ],
  "properties": {
    "name": {
      "type": "string",
      "description": "Name for the configuration."
    },
    "origin": {
      "type": "object",
      "required": [
        "scheme",
        "host",
        "port",
        "database",
        "user",
        "password"
      ],
      "properties": {
        "scheme": {
          "type": "string",
          "description": "Database protocol."
        },
        "host": {
          "type": "string",
          "description": "Database host."
        },
        "port": {
          "type": "integer",
          "description": "Database port."
        },
        "database": {
          "type": "string",
          "description": "Database name."
        },
        "user": {
          "type": "string",
          "description": "Database user."
        },
        "password": {
          "type": "string",
          "description": "Database password."
        }
      }
    },
    "caching": {
      "type": "object",
      "properties": {
        "disabled": {
          "type": "boolean"
        },
        "max_age": {
          "type": "integer"
        },
        "stale_while_revalidate": {
          "type": "integer"
        }
      }
    }
  }
}