{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-bulk-upload-result-xo-schema.json",
  "title": "BulkUploadResultXO",
  "description": "Result of bulk CSV upload operation",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexus-security-ip-allow-list-api-openapi.yml#/components/schemas/BulkUploadResultXO",
  "type": "object",
  "properties": {
    "totalRows": {
      "type": "integer",
      "description": "Total number of data rows processed (excluding header)",
      "format": "int32"
    },
    "addedCount": {
      "type": "integer",
      "description": "Number of entries successfully added",
      "format": "int32"
    },
    "skippedCount": {
      "type": "integer",
      "description": "Number of entries skipped (duplicates)",
      "format": "int32"
    },
    "rejectedCount": {
      "type": "integer",
      "description": "Number of entries rejected due to validation errors",
      "format": "int32"
    },
    "rejectedEntries": {
      "type": "array",
      "description": "Structured list of rejected entries with line number, value, and reason",
      "items": {
        "$ref": "#/$defs/RejectedEntryXO"
      }
    }
  },
  "$defs": {
    "RejectedEntryXO": {
      "type": "object",
      "properties": {
        "line": {
          "type": "integer",
          "description": "Line number in the CSV file",
          "format": "int32"
        },
        "value": {
          "type": "string",
          "description": "The value that was rejected"
        },
        "reason": {
          "type": "string",
          "description": "Reason the entry was rejected"
        }
      },
      "description": "A rejected entry from a bulk CSV upload"
    }
  }
}