{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dns-coffee/json-schema/dns-coffee-tldactivity-body-schema.json",
  "title": "TLDActivityBody",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dns-coffee-stats-api-openapi.yml#/components/schemas/TLDActivityBody",
  "additionalProperties": false,
  "properties": {
    "$schema": {
      "description": "A URL to the JSON Schema for this object.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    },
    "series": {
      "description": "One monthly new-domain-count series per TLD, for the top TLDs by activity.",
      "items": {
        "$ref": "#/$defs/StatsGrowthSeries"
      },
      "type": [
        "array",
        "null"
      ]
    }
  },
  "required": [
    "series"
  ],
  "type": "object",
  "$defs": {
    "StatsGrowthSeries": {
      "additionalProperties": false,
      "properties": {
        "dates": {
          "description": "YYYY-MM-DD start dates of the series' time buckets, ascending. Parallel to values.",
          "items": {
            "type": "string"
          },
          "type": [
            "array",
            "null"
          ]
        },
        "name": {
          "description": "Name of the series.",
          "type": "string"
        },
        "values": {
          "description": "Average of the daily domain counts within the matching bucket.",
          "items": {
            "format": "int64",
            "type": "integer"
          },
          "type": [
            "array",
            "null"
          ]
        }
      },
      "required": [
        "name",
        "dates",
        "values"
      ],
      "type": "object"
    }
  }
}