{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/trove/main/json-schema/trove-contributor-schema.json",
  "title": "contributor",
  "x-generated": "2026-10-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/trove-openapi.yml#/components/schemas/contributor",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "description": "Either the contributor's NUC or a numeric id."
    },
    "url": {
      "type": "string",
      "description": "The contributor's Trove API url"
    },
    "name": {
      "type": "string",
      "description": "The contributor's name"
    },
    "nuc": {
      "type": "string",
      "description": "The contributor's NUC"
    },
    "shortname": {
      "type": "string",
      "description": "A shorter version of the contributor's name"
    },
    "totalholdings": {
      "type": "integer",
      "description": "The total number of holders the contributor has"
    },
    "accesspolicy": {
      "type": "string",
      "description": "The contributor's access conditions"
    },
    "homepage": {
      "type": "string",
      "description": "The contributor's web page"
    },
    "algentry": {
      "type": "string",
      "description": "The url to contributor's ALG entry"
    },
    "parent": {
      "type": "object",
      "description": "The contributor's parent institution, if there is one",
      "properties": {
        "id": {
          "type": "string",
          "description": "The identifier of the parent institution."
        },
        "url": {
          "type": "string",
          "description": "The parent institution's Trove API url."
        },
        "name": {
          "type": "string",
          "description": "The parent institution's name."
        }
      }
    },
    "children": {
      "type": "array",
      "description": "The contributor's child institutions, if there are any",
      "items": {
        "$ref": "#/$defs/contributor"
      }
    }
  },
  "$defs": {
    "contributor": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "description": "Either the contributor's NUC or a numeric id."
        },
        "url": {
          "type": "string",
          "description": "The contributor's Trove API url"
        },
        "name": {
          "type": "string",
          "description": "The contributor's name"
        },
        "nuc": {
          "type": "string",
          "description": "The contributor's NUC"
        },
        "shortname": {
          "type": "string",
          "description": "A shorter version of the contributor's name"
        },
        "totalholdings": {
          "type": "integer",
          "description": "The total number of holders the contributor has"
        },
        "accesspolicy": {
          "type": "string",
          "description": "The contributor's access conditions"
        },
        "homepage": {
          "type": "string",
          "description": "The contributor's web page"
        },
        "algentry": {
          "type": "string",
          "description": "The url to contributor's ALG entry"
        },
        "parent": {
          "type": "object",
          "description": "The contributor's parent institution, if there is one",
          "properties": {
            "id": {
              "type": "string",
              "description": "The identifier of the parent institution."
            },
            "url": {
              "type": "string",
              "description": "The parent institution's Trove API url."
            },
            "name": {
              "type": "string",
              "description": "The parent institution's name."
            }
          }
        },
        "children": {
          "type": "array",
          "description": "The contributor's child institutions, if there are any",
          "items": {
            "$ref": "#/$defs/contributor"
          }
        }
      }
    }
  }
}