{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/dependency-track/json-schema/dependency-track-repository-response-schema.json",
  "title": "RepositoryResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/dependency-track-repository-api-openapi.yml#/components/schemas/RepositoryResponse",
  "type": "object",
  "properties": {
    "authenticationRequired": {
      "type": "boolean",
      "description": "Whether the repository requires authentication"
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the repository is enabled"
    },
    "identifier": {
      "type": "string",
      "description": "Unique identifier of the repository within its type"
    },
    "internal": {
      "type": "boolean",
      "description": "Whether the repository is internal to the organization"
    },
    "password": {
      "type": "string",
      "description": "Name of the secret holding the password or token"
    },
    "resolutionOrder": {
      "type": "integer",
      "format": "int32",
      "description": "Order in which the repository is queried during version resolution"
    },
    "type": {
      "type": "string",
      "description": "Type of the repository",
      "enum": [
        "MAVEN",
        "NPM",
        "GEM",
        "PYPI",
        "NUGET",
        "HEX",
        "COMPOSER",
        "CARGO",
        "GO_MODULES",
        "CPAN",
        "GITHUB",
        "HACKAGE",
        "NIXPKGS",
        "UNSUPPORTED"
      ]
    },
    "url": {
      "type": "string",
      "description": "URL of the repository"
    },
    "username": {
      "type": "string",
      "description": "Username to authenticate with"
    },
    "uuid": {
      "type": "string",
      "format": "uuid",
      "description": "UUID of the repository"
    }
  },
  "required": [
    "authenticationRequired",
    "enabled",
    "identifier",
    "resolutionOrder",
    "type",
    "url",
    "uuid"
  ]
}