{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "RegistryConfig",
  "description": "RegistryConfig schema from Palo Alto Networks Prisma Cloud Compute API",
  "$id": "https://raw.githubusercontent.com/api-evangelist/palo-alto-networks/refs/heads/main/json-schema/prisma-cloud-compute-api-registry-config-schema.json",
  "type": "object",
  "properties": {
    "version": {
      "type": "string",
      "description": "Registry type identifier.",
      "enum": [
        "dockerhub",
        "aws",
        "azure",
        "gcr",
        "jfrog",
        "quay",
        "other"
      ]
    },
    "registry": {
      "type": "string",
      "description": "Registry URL or hostname."
    },
    "namespace": {
      "type": "string",
      "description": "Registry namespace or organization name."
    },
    "credentialID": {
      "type": "string",
      "description": "Credential store identifier for registry authentication."
    },
    "os": {
      "type": "string",
      "enum": [
        "linux",
        "windows"
      ],
      "default": "linux",
      "description": "Base OS for scanned images."
    },
    "cap": {
      "type": "integer",
      "description": "Maximum number of images to scan from this registry."
    },
    "scanners": {
      "type": "integer",
      "description": "Number of scanner instances to use."
    },
    "tag": {
      "type": "string",
      "description": "Specific tag to scan. Scans all tags if omitted."
    }
  },
  "required": [
    "version",
    "registry"
  ]
}
