{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/artificialwatch/json-schema/artificialwatch-cutoffs-schema.json",
  "title": "Cutoffs",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/artificialwatch-openapi.json#/components/schemas/Cutoffs",
  "type": "object",
  "required": [
    "name",
    "url",
    "license",
    "generated",
    "count",
    "not_published",
    "models"
  ],
  "properties": {
    "name": {
      "type": "string"
    },
    "url": {
      "type": "string",
      "format": "uri"
    },
    "license": {
      "type": "string",
      "format": "uri"
    },
    "attribution": {
      "type": "string"
    },
    "method": {
      "type": "string"
    },
    "generated": {
      "type": "string",
      "format": "date"
    },
    "count": {
      "type": "integer"
    },
    "median_months_to_release": {
      "type": [
        "number",
        "null"
      ]
    },
    "not_published": {
      "type": "array",
      "items": {
        "type": "object",
        "required": [
          "lab",
          "pages_checked"
        ],
        "properties": {
          "lab": {
            "type": "string"
          },
          "pages_checked": {
            "type": "string"
          }
        }
      }
    },
    "models": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Cutoff"
      }
    }
  },
  "$defs": {
    "Cutoff": {
      "type": "object",
      "required": [
        "id",
        "name",
        "lab",
        "cutoff",
        "precision",
        "live_since",
        "months_to_release",
        "source",
        "checked",
        "page"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "lab": {
          "type": "string"
        },
        "cutoff": {
          "type": "string",
          "description": "As precisely as the lab states it: YYYY-MM or YYYY-MM-DD"
        },
        "precision": {
          "type": "string",
          "enum": [
            "month",
            "day"
          ]
        },
        "live_since": {
          "type": "string",
          "format": "date"
        },
        "months_to_release": {
          "type": "integer",
          "description": "Calendar months from the cutoff's month to the release month"
        },
        "source": {
          "type": "string",
          "format": "uri",
          "description": "The lab's own page that states the cutoff"
        },
        "checked": {
          "type": "string",
          "format": "date"
        },
        "page": {
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}