{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-component-versions-page-xo-schema.json",
  "title": "ComponentVersionsPageXO",
  "description": "One page of a component's distinct versions",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexus-search-api-openapi.yml#/components/schemas/ComponentVersionsPageXO",
  "type": "object",
  "properties": {
    "items": {
      "type": "array",
      "description": "The versions on this page, ordered as requested",
      "items": {
        "$ref": "#/$defs/ComponentVersionXO"
      }
    },
    "total": {
      "type": "integer",
      "description": "Total number of distinct versions matching the query",
      "format": "int64"
    },
    "page": {
      "type": "integer",
      "description": "Zero-based index of this page",
      "format": "int32"
    },
    "size": {
      "type": "integer",
      "description": "Requested page size",
      "format": "int32"
    }
  },
  "$defs": {
    "ComponentVersionXO": {
      "type": "object",
      "properties": {
        "version": {
          "type": "string",
          "description": "The component version"
        },
        "lastUpdated": {
          "type": "string",
          "description": "The most recent modification time across the repositories holding this version",
          "format": "date-time"
        },
        "repositories": {
          "type": "array",
          "description": "Names of the repositories containing this version",
          "items": {
            "type": "string",
            "description": "Names of the repositories containing this version"
          }
        }
      },
      "description": "One distinct version of a component and the repositories containing it"
    }
  }
}