{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sifflet/json-schema/sifflet-public-external-catalog-import-dto-schema.json",
  "title": "PublicExternalCatalogImportDto",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/sifflet-external-catalog-api-openapi.yml#/components/schemas/PublicExternalCatalogImportDto",
  "required": [
    "assets",
    "configuration"
  ],
  "type": "object",
  "properties": {
    "assets": {
      "type": "array",
      "description": "Assets to enrich with external catalog metadata",
      "items": {
        "$ref": "#/$defs/PublicAssetImportDto"
      }
    },
    "configuration": {
      "$ref": "#/$defs/PublicConfigurationImportDto"
    }
  },
  "$defs": {
    "PublicAssetImportDto": {
      "required": [
        "uri"
      ],
      "type": "object",
      "properties": {
        "catalogUrl": {
          "type": [
            "string",
            "null"
          ],
          "description": "URL of the asset in the external catalog. Null or empty removes the existing link."
        },
        "description": {
          "type": [
            "string",
            "null"
          ],
          "description": "Description of the asset in the external catalog. Null or empty removes the existing description."
        },
        "labels": {
          "type": "array",
          "description": "Labels to attach to the asset",
          "items": {
            "$ref": "#/$defs/PublicLabelExternalMetadataDto"
          }
        },
        "strings": {
          "type": "array",
          "description": "String metadata to attach to the asset",
          "items": {
            "$ref": "#/$defs/PublicStringExternalMetadataDto"
          }
        },
        "tags": {
          "type": "array",
          "description": "Tags to attach to the asset",
          "items": {
            "$ref": "#/$defs/PublicNamedElementExternalMetadataDto"
          }
        },
        "uri": {
          "type": "string",
          "description": "URI of the asset to enrich. <a href=\"https://docs.siffletdata.com/docs/uri\">[Read more about URIs]</a>"
        }
      },
      "description": "Assets to enrich with external catalog metadata"
    },
    "PublicConfigurationImportDto": {
      "required": [
        "catalogProvider"
      ],
      "type": "object",
      "properties": {
        "catalogProvider": {
          "type": "string",
          "description": "Type of external catalog. If not listed, use CATALOG_GENERIC",
          "enum": [
            "ATLAN",
            "ALATION",
            "AMUNDSEN",
            "APACHE_ATLAS",
            "CASTOR_DOC",
            "COLLIBRA",
            "DATAGALAXY",
            "INFORMATICA",
            "SECODA",
            "SELECT_STAR",
            "CATALOG_GENERIC"
          ]
        }
      },
      "description": "Configuration of the import"
    },
    "PublicLabelExternalMetadataDto": {
      "required": [
        "data",
        "name"
      ],
      "type": "object",
      "properties": {
        "data": {
          "type": "array",
          "description": "Values of the label",
          "items": {
            "$ref": "#/$defs/PublicNamedElementExternalMetadataDto"
          }
        },
        "name": {
          "type": "string",
          "description": "Name of the metadata"
        },
        "showInFilter": {
          "type": "boolean",
          "description": "Whether the label should be shown as a filter in the catalog",
          "default": false
        }
      },
      "description": "Labels to attach to the asset"
    },
    "PublicNamedElementExternalMetadataDto": {
      "required": [
        "name"
      ],
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name to display"
        }
      },
      "description": "Tags to attach to the asset"
    },
    "PublicStringExternalMetadataDto": {
      "required": [
        "data",
        "name"
      ],
      "type": "object",
      "properties": {
        "data": {
          "type": "string",
          "description": "Value of the metadata"
        },
        "name": {
          "type": "string",
          "description": "Name of the metadata"
        },
        "showInFilter": {
          "type": "boolean",
          "description": "Whether the metadata should be shown as a filter in the catalog",
          "default": false
        }
      },
      "description": "String metadata to attach to the asset"
    }
  }
}