{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talend/json-schema/talend-paginated-resources-crawled-dataset-schema.json",
  "title": "PaginatedResources_CrawledDataset",
  "description": "This objects contains the datasets related to a crawler in a paginated context.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talend-crawler-api-openapi.yml#/components/schemas/PaginatedResources_CrawledDataset",
  "type": "object",
  "required": [
    "limit",
    "offset",
    "total"
  ],
  "properties": {
    "data": {
      "type": "array",
      "description": "Contains the list of the objects selected in the crawler configuration",
      "items": {
        "$ref": "#/$defs/CrawledDataset"
      }
    },
    "offset": {
      "type": "integer",
      "format": "int32",
      "description": "Pagination offset"
    },
    "limit": {
      "type": "integer",
      "format": "int32",
      "description": "Pagination limit"
    },
    "total": {
      "type": "integer",
      "format": "int32",
      "description": "Total number of crawlers"
    }
  },
  "$defs": {
    "CrawledDataset": {
      "type": "object",
      "required": [
        "crawlerId",
        "displayName",
        "exportStatus",
        "id",
        "lastUpdate",
        "metadata",
        "technicalName"
      ],
      "description": "This object represents a datasets related to a crawler.",
      "properties": {
        "id": {
          "type": "string",
          "description": "The technical ID of the object selected by the crawler"
        },
        "crawlerId": {
          "type": "string",
          "description": "The technical talend ID of the crawler"
        },
        "datasetId": {
          "type": "string",
          "description": "The technical ID of the dataset generated by the crawler"
        },
        "displayName": {
          "type": "string",
          "description": "Names of the tables and views that we want to retrieve with the crawler"
        },
        "technicalName": {
          "type": "string",
          "description": "Technical names of the tables and views that we want to retrieve with the crawler"
        },
        "metadata": {
          "$ref": "#/$defs/Metadata_infos"
        },
        "exportStatus": {
          "$ref": "#/$defs/ExportStatus"
        },
        "failure": {
          "type": "string",
          "description": "Indicate if we encountered a failure during the crawling for this dataset"
        },
        "lastUpdate": {
          "type": "string",
          "format": "date-time",
          "description": "Date of the last time this dataset has been refreshed"
        }
      }
    },
    "ExportStatus": {
      "type": "string",
      "description": "this object contains the different statuses of a dataset in a crawler context.",
      "enum": [
        "Creating",
        "CreationFailed",
        "Finished",
        "NotStarted",
        "Sampling",
        "SamplingFailed"
      ]
    },
    "Metadata_infos": {
      "type": "object",
      "description": "This objects contains the metadata of an entity according to the context of the call.\nExemple : indicate if an object is a table or a view."
    }
  }
}