{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://api.unil.ch/iris/schemas/community.json",
  "title": "DSpace Community",
  "description": "A DSpace community (top-level container of collections) in the IRIS repository.",
  "type": "object",
  "properties": {
    "id": {
      "type": "string",
      "format": "uuid",
      "description": "Community UUID."
    },
    "uuid": {
      "type": "string",
      "format": "uuid",
      "description": "Community UUID (duplicate of id)."
    },
    "name": {
      "type": "string",
      "description": "Community display name."
    },
    "handle": {
      "type": "string",
      "description": "Persistent handle identifier."
    },
    "metadata": {
      "type": "object",
      "description": "DSpace metadata map keyed by qualified field name.",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "object",
          "properties": {
            "value": {
              "type": "string"
            },
            "language": {
              "type": [
                "string",
                "null"
              ]
            },
            "authority": {
              "type": [
                "string",
                "null"
              ]
            },
            "confidence": {
              "type": "integer"
            },
            "place": {
              "type": "integer"
            }
          },
          "required": [
            "value"
          ]
        }
      }
    },
    "archivedItemsCount": {
      "type": "integer",
      "description": "Number of archived items under this community."
    },
    "type": {
      "type": "string",
      "description": "Resource type discriminator.",
      "const": "community"
    },
    "uniqueType": {
      "type": "string"
    },
    "_links": {
      "type": "object",
      "description": "HAL hypermedia links.",
      "additionalProperties": true
    }
  },
  "required": [
    "uuid",
    "name",
    "handle",
    "type"
  ],
  "x-provenance": {
    "generated": "2026-09-01",
    "method": "derived",
    "source": "Derived by API Evangelist from this repository's own OpenAPI contracts for the IRIS DSpace REST API, both reconstructed from live UNIL hosts. Not published by the University of Lausanne."
  }
}