{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/talend/json-schema/talend-connection-scan-schema.json",
  "title": "ConnectionScan",
  "description": "This object contains the information about the last scan of the connection. It allows the user to retrieve the objects found by the last scan.",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/talend-connectionscan-api-openapi.yml#/components/schemas/ConnectionScan",
  "type": "object",
  "required": [
    "id",
    "lastScan"
  ],
  "properties": {
    "id": {
      "type": "string",
      "description": "The technical talend ID of the connection"
    },
    "lastScan": {
      "type": "string",
      "format": "date-time",
      "description": "Date of the last time this connection has been scanned"
    },
    "results": {
      "type": "array",
      "description": "Objects of the connection retrieved by the last scan",
      "items": {
        "$ref": "#/$defs/ScannedDataset"
      }
    }
  },
  "$defs": {
    "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."
    },
    "ScannedDataset": {
      "type": "object",
      "required": [
        "displayName",
        "metadata",
        "technicalName"
      ],
      "description": "This object contains the objects founded by the scan.",
      "properties": {
        "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"
        }
      }
    }
  }
}