{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nexus/json-schema/nexus-global-settings-with-repositories-xo-schema.json",
  "title": "GlobalSettingsWithRepositoriesXO",
  "x-generated": "2026-11-05",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nexus-hosted-repository-evaluation-api-openapi.yml#/components/schemas/GlobalSettingsWithRepositoriesXO",
  "required": [
    "activityTimeFrame",
    "artifactLatestVersions",
    "autoEnrollNewRepos",
    "policyEvaluationStage",
    "repositoryIds"
  ],
  "type": "object",
  "properties": {
    "activityTimeFrame": {
      "minimum": 1,
      "type": "integer",
      "description": "Number of days to look back for activity",
      "format": "int32"
    },
    "artifactLatestVersions": {
      "minimum": 1,
      "type": "integer",
      "description": "Number of latest versions to evaluate per artifact",
      "format": "int32"
    },
    "policyEvaluationStage": {
      "pattern": "^(BUILD|STAGE_RELEASE|RELEASE|OPERATE)$",
      "type": "string",
      "description": "Policy evaluation stage",
      "enum": [
        "BUILD",
        "STAGE_RELEASE",
        "RELEASE",
        "OPERATE"
      ]
    },
    "autoEnrollNewRepos": {
      "type": "boolean",
      "description": "Whether to automatically enroll new repositories for monitoring"
    },
    "repositoryIds": {
      "maxItems": 5000,
      "minItems": 1,
      "type": "array",
      "description": "List of repository IDs to enable monitoring for",
      "items": {
        "type": "string",
        "description": "List of repository IDs to enable monitoring for"
      }
    }
  }
}