{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/weatherai-io/json-schema/weatherai-io-profile-input-schema.json",
  "title": "ProfileInput",
  "x-generated": "2026-10-31",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/_original/weatherai-io-api-openapi.json#/components/schemas/ProfileInput",
  "type": "object",
  "required": [
    "name"
  ],
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 80
    },
    "base_activity": {
      "type": "string",
      "enum": [
        "running",
        "cycling",
        "outdoor-event",
        "beach",
        "laundry-drying",
        "stargazing",
        "hiking",
        "golf",
        "tennis",
        "dog-walking",
        "gardening",
        "fishing",
        "sailing",
        "drone-flying",
        "exterior-painting",
        "concrete-pour",
        "roofing",
        "crop-spraying",
        "outdoor-work",
        "driving",
        "solar-pv",
        "crane-lifting",
        "groundworks",
        "marquee",
        "outdoor-dining",
        "harvesting",
        "irrigation",
        "high-sided-vehicles",
        "field-service",
        "wind-power"
      ],
      "description": "Default outdoor-work"
    },
    "min_hours": {
      "type": "integer",
      "minimum": 1
    },
    "from_hour": {
      "type": "integer",
      "minimum": 0,
      "maximum": 23
    },
    "to_hour": {
      "type": "integer",
      "minimum": 1,
      "maximum": 30
    },
    "limits": {
      "$ref": "#/$defs/RuleLimits"
    }
  },
  "$defs": {
    "RuleLimits": {
      "type": "object",
      "additionalProperties": false,
      "properties": {
        "temp_min_c": {
          "type": "number"
        },
        "temp_max_c": {
          "type": "number"
        },
        "feels_like_min_c": {
          "type": "number"
        },
        "feels_like_max_c": {
          "type": "number"
        },
        "wind_max_kph": {
          "type": "number"
        },
        "wind_min_kph": {
          "type": "number"
        },
        "gust_max_kph": {
          "type": "number"
        },
        "rain_chance_max": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "precip_max_mm": {
          "type": "number"
        },
        "snow_chance_max": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "humidity_max": {
          "type": "integer",
          "minimum": 0,
          "maximum": 100
        },
        "visibility_min_km": {
          "type": "number"
        },
        "uv_max": {
          "type": "number"
        },
        "no_thunder": {
          "type": "boolean"
        },
        "daylight_only": {
          "type": "boolean"
        }
      },
      "description": "Hard limits: an hour that breaks one scores 0. All optional; metric units."
    }
  }
}