{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-release-schema.json",
  "title": "Release",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-releases-api-openapi.yml#/components/schemas/Release",
  "type": "object",
  "properties": {
    "applications": {
      "type": "array",
      "description": "The list of application perspectives where the release can be viewed.",
      "items": {
        "$ref": "#/$defs/ApplicationScope"
      },
      "maxItems": 10,
      "minItems": 0
    },
    "name": {
      "type": "string",
      "description": "The name of the release. For example: `frontend/release-2000`.",
      "maxLength": 256,
      "minLength": 0
    },
    "services": {
      "type": "array",
      "description": "The list of services where the release can be viewed.",
      "items": {
        "$ref": "#/$defs/ServiceScope"
      },
      "maxItems": 10,
      "minItems": 0
    },
    "start": {
      "type": "integer",
      "format": "int64",
      "description": "The timestamp for when the release is created. The time measured is in milliseconds. For example: `1742349976000` is `Wednesday, 19 March 2025 02:06:16 GMT`.",
      "minimum": 1
    }
  },
  "required": [
    "name",
    "start"
  ],
  "$defs": {
    "ApplicationScope": {
      "type": "object",
      "description": "The list of application perspectives where the release can be viewed.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the Application Perspective. Eg: `app1`.",
          "maxLength": 256,
          "minLength": 0
        }
      },
      "required": [
        "name"
      ]
    },
    "ServiceScope": {
      "type": "object",
      "description": "The list of services where the release can be viewed.",
      "properties": {
        "name": {
          "type": "string",
          "description": "Name of the Service. Eg: `payment`.",
          "maxLength": 256,
          "minLength": 0
        },
        "scopedTo": {
          "$ref": "#/$defs/ServiceScopedTo"
        }
      },
      "required": [
        "name"
      ]
    },
    "ServiceScopedTo": {
      "type": "object",
      "description": "The list of application perspectives where the service is present. ",
      "properties": {
        "applications": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/ApplicationScope"
          },
          "maxItems": 10,
          "minItems": 1
        }
      },
      "required": [
        "applications"
      ]
    }
  }
}