{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-catalyst-center/json-schema/cisco-catalyst-center-preview-list-response-schema.json",
  "title": "PreviewListResponse",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-catalyst-center-preview-deploy-api-openapi.yml#/components/schemas/PreviewListResponse",
  "type": "object",
  "properties": {
    "response": {
      "$ref": "#/$defs/Preview"
    },
    "version": {
      "type": "string"
    }
  },
  "$defs": {
    "NetworkDeviceId": {
      "type": "string",
      "description": "Id of the device",
      "format": "uuid"
    },
    "Preview": {
      "type": "object",
      "properties": {
        "networkDeviceId": {
          "$ref": "#/$defs/NetworkDeviceId"
        },
        "previewItems": {
          "$ref": "#/$defs/PreviewItems"
        },
        "status": {
          "$ref": "#/$defs/PreviewGenerationStatus"
        }
      }
    },
    "PreviewGenerationStatus": {
      "type": "string",
      "description": "Preview generation status:\n * 'Not Started' - preview generation has not started\n * 'In Progress' - preview generation is in progress\n * 'Success' - preview generation completed and was succesful \n * 'Failed' - preview generation completed with failure\n * 'Warning' - preview generation completed with warning\n",
      "enum": [
        "Not Started",
        "In Progress",
        "Success",
        "Failed",
        "Warning"
      ]
    },
    "PreviewItem": {
      "type": "object",
      "properties": {
        "configPreview": {
          "type": "string",
          "description": "the actual preview item. this is what will be configured on the device if the user decides to go ahead with the provisioning."
        },
        "configType": {
          "type": "string",
          "description": "Preview item type:\n * 'CLI' - preview item is of type CLI (Command Line Interface)\n * 'YANG' - preview item is of type Yang (data modeling language)\n",
          "enum": [
            "CLI",
            "YANG"
          ]
        },
        "errorMessages": {
          "type": "array",
          "items": {
            "type": "string",
            "description": "error messages during preview generation"
          }
        },
        "name": {
          "type": "string",
          "description": "user friendly description of the preview item"
        }
      }
    },
    "PreviewItems": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/PreviewItem"
      }
    }
  }
}