{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/good-grants/json-schema/good-grants-form-schema.json",
  "title": "Form",
  "description": "Form used to collect applications within a season.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/good-grants-forms-api-openapi.yml#/components/schemas/Form",
  "type": "object",
  "properties": {
    "callToAction": {
      "type": "object",
      "description": "Translated call to action of the form, keyed by locale code.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "chapter_option": {
      "type": "string",
      "description": "How chapters are applied to the form.\n* `all` - Available to every chapter.\n* `select` - Available to selected chapters only.",
      "enum": [
        "all",
        "select"
      ]
    },
    "content_block": {
      "type": [
        "object",
        "null"
      ],
      "description": "Content block displayed with the form, or null if none is assigned.",
      "properties": {
        "slug": {
          "type": "string",
          "description": "URL-safe identifier of the content block."
        },
        "link": {
          "type": "string",
          "format": "uri",
          "description": "Canonical URL for the content block resource."
        },
        "name": {
          "type": "object",
          "description": "Translated name of the content block, keyed by locale code.",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the form was created."
    },
    "name": {
      "type": "object",
      "description": "Translated name of the form, keyed by locale code.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "season": {
      "type": [
        "object",
        "null"
      ],
      "description": "Season the form belongs to, or null if not assigned.",
      "properties": {
        "slug": {
          "type": "string",
          "description": "URL-safe identifier of the season."
        },
        "link": {
          "type": "string",
          "format": "uri",
          "description": "Canonical URL for the season resource."
        },
        "name": {
          "type": "object",
          "description": "Translated name of the season, keyed by locale code.",
          "additionalProperties": {
            "type": "string"
          }
        }
      }
    },
    "slug": {
      "type": "string",
      "description": "URL-safe identifier of the form."
    },
    "type": {
      "type": "string",
      "description": "Type of the form.\n* `application` - Collects applications.\n* `report` - Collects grant reports.",
      "enum": [
        "application",
        "report"
      ]
    },
    "updated": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the form was last updated."
    }
  }
}