{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/spotwatts-com/json-schema/spotwatts-com-now-schema.json",
  "title": "Now",
  "x-generated": "2026-11-22",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/spotwatts-com-openapi.json#/components/schemas/Now",
  "allOf": [
    {
      "$ref": "#/$defs/Interval"
    },
    {
      "type": "object",
      "properties": {
        "zone": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "timezone": {
          "type": "string"
        },
        "currency": {
          "type": "string"
        },
        "unit": {
          "type": "string"
        },
        "vat_rate": {
          "type": "number"
        },
        "attribution": {
          "$ref": "#/$defs/Attribution"
        }
      }
    }
  ],
  "$defs": {
    "Attribution": {
      "type": "object",
      "description": "The link the terms of use ask for. A one-zone response links the zone's page, others the home.",
      "properties": {
        "text": {
          "type": "string"
        },
        "url": {
          "type": "string",
          "format": "uri"
        },
        "html": {
          "type": "string"
        }
      }
    },
    "Interval": {
      "type": "object",
      "properties": {
        "start": {
          "type": "string",
          "format": "date-time",
          "description": "Local time with offset."
        },
        "end": {
          "type": "string",
          "format": "date-time"
        },
        "price": {
          "type": "number",
          "description": "Currency per kWh, excl. VAT."
        },
        "price_vat": {
          "type": "number",
          "description": "Currency per kWh, inc. VAT."
        },
        "eur_mwh": {
          "type": "number",
          "description": "Day-ahead price in EUR/MWh, as published."
        }
      }
    }
  }
}