{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/good-grants/json-schema/good-grants-chapter-schema.json",
  "title": "Chapter",
  "description": "Grouping that categories can be made available in.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/good-grants-chapters-api-openapi.yml#/components/schemas/Chapter",
  "type": "object",
  "properties": {
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the chapter was created."
    },
    "description": {
      "type": "object",
      "description": "Description shown for the chapter, as a map of translated strings keyed by locale code.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "managers": {
      "type": "array",
      "description": "Users who manage the chapter.",
      "items": {
        "type": "object",
        "properties": {
          "slug": {
            "type": "string",
            "description": "Short URL-safe identifier for the user."
          },
          "link": {
            "type": "string",
            "format": "uri",
            "description": "Canonical URL for the user resource."
          },
          "first_name": {
            "type": "string",
            "description": "User's first name."
          },
          "last_name": {
            "type": "string",
            "description": "User's last name."
          }
        }
      }
    },
    "name": {
      "type": "object",
      "description": "Display name of the chapter, as a map of translated strings keyed by locale code.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "season": {
      "type": "object",
      "description": "Season the chapter 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 of translated strings keyed by locale code (for example, `en_GB` or `fr_FR`).",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "slug": {
      "type": "string",
      "description": "Short URL-safe identifier for the chapter."
    },
    "status": {
      "type": "string",
      "description": "Localized status label for the chapter, such as `Active` or `Inactive`, distinct from the `active`/`inactive` enum used when writing a chapter."
    },
    "updated": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the chapter was last updated."
    }
  }
}