{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/good-grants/json-schema/good-grants-fund-schema.json",
  "title": "Fund",
  "description": "Fund holding a monetary budget, tracking allocated and available amounts.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/good-grants-funds-api-openapi.yml#/components/schemas/Fund",
  "type": "object",
  "properties": {
    "allocated": {
      "type": [
        "integer",
        "number"
      ],
      "description": "Amount allocated from the budget, in the fund's currency."
    },
    "available": {
      "type": [
        "integer",
        "number"
      ],
      "description": "Amount still available to allocate, in the fund's currency, equal to budget minus allocated."
    },
    "budget": {
      "type": [
        "integer",
        "number"
      ],
      "description": "Total budget of the fund, in the fund's currency."
    },
    "created": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the fund was created."
    },
    "currency": {
      "type": "string",
      "description": "ISO 4217 currency code of the fund's amounts."
    },
    "description": {
      "type": "object",
      "description": "Translated description of the fund, keyed by locale code.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "name": {
      "type": "object",
      "description": "Translated name of the fund, keyed by locale code.",
      "additionalProperties": {
        "type": "string"
      }
    },
    "slug": {
      "type": "string",
      "description": "URL-safe identifier of the fund."
    },
    "updated": {
      "type": "string",
      "format": "date-time",
      "description": "Date and time when the fund was last updated."
    }
  }
}