{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/good-grants/json-schema/good-grants-contributor-list-schema.json",
  "title": "ContributorList",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/good-grants-contributors-api-openapi.yml#/components/schemas/ContributorList",
  "allOf": [
    {
      "$ref": "#/$defs/Pagination"
    },
    {
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/Contributor"
          }
        }
      }
    }
  ],
  "$defs": {
    "Contributor": {
      "type": "object",
      "properties": {
        "application": {
          "type": "object",
          "description": "Application the contributor is attached to.",
          "properties": {
            "slug": {
              "type": "string",
              "description": "Short URL-safe identifier for the application."
            },
            "link": {
              "type": "string",
              "format": "uri",
              "description": "Canonical URL for the application resource."
            },
            "title": {
              "type": "string",
              "description": "Title of the application."
            }
          }
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time when the contributor was created."
        },
        "fields": {
          "type": "array",
          "description": "Field values captured for the contributor, one item per field on the contributor tab.",
          "items": {
            "type": "object",
            "properties": {
              "slug": {
                "type": "string",
                "description": "Short URL-safe identifier for the field."
              },
              "link": {
                "type": "string",
                "format": "uri",
                "description": "Canonical URL for the field resource."
              },
              "label": {
                "type": "object",
                "description": "Label of the field as an HTML fragment, keyed by locale code.",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "title": {
                "type": "object",
                "description": "Plain-text title of the field, keyed by locale code.",
                "additionalProperties": {
                  "type": "string"
                }
              },
              "value": {
                "description": "Value submitted for the field, type depends on the field type."
              },
              "translated": {
                "type": "object",
                "description": "Translated value submitted for the field, keyed by locale code.",
                "additionalProperties": {
                  "type": "string"
                }
              }
            }
          }
        },
        "season": {
          "type": "object",
          "description": "Season the contributor 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": "Display name of the season, keyed by locale code.",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        },
        "slug": {
          "type": "string",
          "description": "Short URL-safe identifier for the contributor."
        },
        "tab": {
          "type": "object",
          "description": "Contributor tab the contributor belongs to.",
          "properties": {
            "slug": {
              "type": "string",
              "description": "Short URL-safe identifier for the tab."
            },
            "link": {
              "type": "string",
              "format": "uri",
              "description": "Canonical URL for the tab resource."
            },
            "name": {
              "type": "object",
              "description": "Display name of the tab, keyed by locale code.",
              "additionalProperties": {
                "type": "string"
              }
            }
          }
        },
        "updated": {
          "type": "string",
          "format": "date-time",
          "description": "Date and time when the contributor was last updated."
        }
      }
    },
    "Pagination": {
      "type": "object",
      "title": "Pagination",
      "properties": {
        "current_page": {
          "type": "integer",
          "description": "Number of the page returned by this response, starting at `1`."
        },
        "first_page_url": {
          "type": "string",
          "description": "URL of the first page in the result set, relative when the requested page is beyond the last page."
        },
        "from": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Position of the first record on this page within the full result set, starting at `1`, or `null` when the requested page is beyond the last page."
        },
        "last_page": {
          "type": "integer",
          "description": "Total number of pages."
        },
        "last_page_url": {
          "type": "string",
          "description": "URL of the last page in the result set, relative when the requested page is beyond the last page."
        },
        "next_page_url": {
          "type": "string",
          "description": "URL of the next page in the result set, empty when the current page is the last page."
        },
        "path": {
          "type": "string",
          "description": "Canonical URL of the endpoint, without query parameters."
        },
        "per_page": {
          "type": "integer",
          "default": 10,
          "description": "Maximum number of records returned per page."
        },
        "prev_page_url": {
          "type": "string",
          "description": "URL of the previous page in the result set, empty when the current page is the first page."
        },
        "to": {
          "type": [
            "integer",
            "null"
          ],
          "description": "Position of the last record on this page within the full result set, or `null` when the requested page is beyond the last page."
        },
        "total": {
          "type": "integer",
          "description": "Total number of records across all pages."
        }
      }
    }
  }
}