{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/exchangerate-dev/json-schema/exchangerate-dev-daily-usage-response-schema.json",
  "title": "DailyUsageResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/exchangerate-dev-account-api-openapi.yml#/components/schemas/DailyUsageResponse",
  "properties": {
    "result": {
      "type": "string",
      "title": "Result",
      "default": "success"
    },
    "tier": {
      "type": "string",
      "title": "Tier"
    },
    "limit": {
      "type": "integer",
      "title": "Limit"
    },
    "month_to_date": {
      "type": "integer",
      "title": "Month To Date"
    },
    "rate_limited_total": {
      "type": "integer",
      "title": "Rate Limited Total"
    },
    "active_streams": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "title": "Active Streams"
    },
    "max_streams": {
      "type": "integer",
      "title": "Max Streams"
    },
    "days": {
      "items": {
        "$ref": "#/$defs/DailyUsageEntry"
      },
      "type": "array",
      "title": "Days"
    }
  },
  "type": "object",
  "required": [
    "tier",
    "limit",
    "month_to_date",
    "rate_limited_total",
    "max_streams",
    "days"
  ],
  "$defs": {
    "DailyUsageEntry": {
      "properties": {
        "date": {
          "type": "string",
          "title": "Date"
        },
        "count": {
          "type": "integer",
          "title": "Count"
        },
        "rate_limited": {
          "type": "integer",
          "title": "Rate Limited"
        }
      },
      "type": "object",
      "required": [
        "date",
        "count",
        "rate_limited"
      ],
      "title": "DailyUsageEntry"
    }
  }
}