{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/folio/json-schema/folio-reindex-job-dto-collection-schema.json",
  "title": "reindexJobDtoCollection",
  "description": "A collection of reindex jobs",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-authority-storage-reindex-api-openapi.yml#/components/schemas/reindexJobDtoCollection",
  "properties": {
    "reindexJobs": {
      "description": "List of reindex jobs",
      "items": {
        "$ref": "#/$defs/reindexJobDto"
      },
      "type": "array"
    },
    "totalRecords": {
      "description": "Estimated or exact total number of records",
      "type": "integer"
    }
  },
  "required": [
    "reindexJobs",
    "totalRecords"
  ],
  "type": "object",
  "$defs": {
    "reindexJobDto": {
      "description": "Get job by id response",
      "properties": {
        "id": {
          "description": "Job id",
          "format": "uuid",
          "type": "string"
        },
        "published": {
          "description": "Number of records that was published so far",
          "type": "integer"
        },
        "jobStatus": {
          "description": "Overall job status",
          "enum": [
            "In progress",
            "Id publishing failed",
            "Ids published",
            "Pending cancel",
            "Id publishing cancelled"
          ],
          "type": "string"
        },
        "resourceName": {
          "description": "Reindex resource name",
          "enum": [
            "Authority"
          ],
          "type": "string"
        },
        "submittedDate": {
          "description": "Timestamp when the job has been submitted",
          "format": "date-time",
          "type": "string"
        }
      },
      "type": "object"
    }
  }
}