{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/acculynx/json-schema/acculynx-report-instance-recipient-collection-schema.json",
  "title": "reportInstanceRecipientCollection",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/acculynx-reports-api-openapi.yml#/components/schemas/reportInstanceRecipientCollection",
  "allOf": [
    {
      "$ref": "#/$defs/baseCollection"
    },
    {
      "type": "object",
      "properties": {
        "items": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/reportInstanceRecipient"
          }
        }
      }
    }
  ],
  "$defs": {
    "baseCollection": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer",
          "description": "The total number of items matching the current query."
        },
        "pageSize": {
          "type": "integer",
          "description": "The requested or default page size."
        },
        "pageStartIndex": {
          "type": "integer",
          "description": "The requested or default index of the first element to return."
        }
      }
    },
    "reportInstanceRecipient": {
      "type": "object",
      "properties": {
        "recipientId": {
          "description": "The unique identifier of the report's instance recipient.",
          "type": "string"
        },
        "reportId": {
          "description": "The unique identifier of the report instance.",
          "type": "string"
        },
        "runInstanceId": {
          "description": "The unique identifier of Report Recipient Instance.",
          "type": "string",
          "format": "uuid"
        },
        "date": {
          "description": "The generation of the report date and time in ISO 8601. https://en.wikipedia.org/wiki/ISO_8601",
          "type": "string",
          "format": "date-time"
        },
        "files": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/reportRecipientFile"
          }
        }
      }
    },
    "reportRecipientFile": {
      "type": "object",
      "properties": {
        "fileId": {
          "description": "The unique identifier of the file of a recipient of a given report instance.",
          "type": "string",
          "format": "uuid"
        },
        "fileUrl": {
          "description": "The unique URI of the file of a recipient of a given report instance.",
          "type": "string",
          "format": "uri"
        }
      }
    }
  }
}