{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-software-version-schema.json",
  "title": "SoftwareVersion",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-infrastructure-resources-api-openapi.yml#/components/schemas/SoftwareVersion",
  "type": "object",
  "properties": {
    "discoveryType": {
      "type": "string",
      "enum": [
        "NATIVE_SENSOR",
        "REMOTE_SENSOR",
        "PACKAGE_MANAGER",
        "OTHER"
      ]
    },
    "metadata": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      }
    },
    "name": {
      "type": "string"
    },
    "plugin": {
      "type": "string"
    },
    "softwareType": {
      "type": "string",
      "enum": [
        "DEPENDENCY",
        "RUNTIME",
        "DATABASE",
        "MESSAGING",
        "PLATFORM",
        "PACKAGE",
        "OS",
        "CACHE",
        "API_GATEWAY",
        "OTHER",
        "APPLICATION_FRAMEWORK"
      ]
    },
    "usedBy": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SoftwareUser"
      },
      "uniqueItems": true
    },
    "vendor": {
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "required": [
    "discoveryType",
    "name",
    "plugin",
    "softwareType",
    "usedBy",
    "vendor",
    "version"
  ],
  "$defs": {
    "SoftwareUser": {
      "type": "object",
      "properties": {
        "container": {
          "type": "string"
        },
        "host": {
          "type": "string"
        },
        "process": {
          "type": "string"
        },
        "snapshotId": {
          "type": "string"
        }
      }
    }
  }
}