{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/good-grants/json-schema/good-grants-round-schema.json",
  "title": "Round",
  "description": "Phase of a season with its own type, dates, form, and chapters.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/good-grants-rounds-api-openapi.yml#/components/schemas/Round",
  "type": "object",
  "properties": {
    "chapters": {
      "type": "array",
      "description": "Chapters associated with the round.",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "Short URL-safe identifier for the chapter."
          },
          "link": {
            "type": "string",
            "format": "uri",
            "description": "Canonical URL for the chapter resource."
          },
          "name": {
            "type": "object",
            "description": "Map keyed by locale code (for example, `en_GB` or `fr_FR`).",
            "additionalProperties": {
              "type": "string"
            }
          }
        }
      }
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the round was created."
    },
    "end_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "Date and time when the round closes, in `YYYY-MM-DD HH:MM:SS` format, or null when no close date is set."
    },
    "form": {
      "type": "string",
      "description": "Slug of the form associated with the round."
    },
    "name": {
      "type": "object",
      "description": "Map keyed by locale code (for example, `en_GB` or `fr_FR`).",
      "additionalProperties": {
        "type": "string"
      }
    },
    "season": {
      "type": "object",
      "description": "Season the round belongs to.",
      "properties": {
        "slug": {
          "type": "string",
          "description": "Short URL-safe identifier for the season."
        },
        "link": {
          "type": "string",
          "format": "uri",
          "description": "Canonical URL for the season resource."
        },
        "name": {
          "type": "object",
          "description": "Map keyed by locale code (for example, `en_GB` or `fr_FR`).",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "slug": {
      "type": "string",
      "description": "Short URL-safe identifier for the round."
    },
    "start_date": {
      "type": [
        "string",
        "null"
      ],
      "description": "Date and time when the round opens, in `YYYY-MM-DD HH:MM:SS` format, or null when no open date is set."
    },
    "type": {
      "type": "string",
      "description": "Type of the round.",
      "enum": [
        "application",
        "reviewer",
        "feedback"
      ]
    },
    "updated": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the round was last updated."
    }
  }
}