{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/sifflet/json-schema/sifflet-public-external-catalog-import-response-dto-schema.json",
  "title": "PublicExternalCatalogImportResponseDto",
  "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/PublicExternalCatalogImportResponseDto",
  "type": "object",
  "properties": {
    "detail": {
      "$ref": "#/$defs/PublicExternalCatalogImportResultDto"
    },
    "status": {
      "type": "integer",
      "description": "HTTP status code",
      "format": "int32"
    },
    "title": {
      "type": "string",
      "description": "HTTP status title"
    }
  },
  "$defs": {
    "PublicAssetImportResultDto": {
      "type": "object",
      "properties": {
        "message": {
          "type": [
            "string",
            "null"
          ],
          "description": "Failure message, present only when the asset failed to import"
        },
        "status": {
          "type": "string",
          "description": "Import status of the asset",
          "enum": [
            "SUCCESS",
            "FAILED"
          ]
        },
        "uri": {
          "type": "string",
          "description": "URI of the asset"
        }
      },
      "description": "Per-asset import status"
    },
    "PublicExternalCatalogImportResultDto": {
      "type": "object",
      "properties": {
        "importStatus": {
          "type": "string",
          "description": "Status of the import",
          "enum": [
            "SUCCESS",
            "PARTIAL_SUCCESS",
            "FAILURE"
          ]
        },
        "results": {
          "type": "array",
          "description": "Per-asset import status",
          "items": {
            "$ref": "#/$defs/PublicAssetImportResultDto"
          }
        }
      },
      "description": "Detailed import result"
    }
  }
}