{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "$id": "https://artifacts.apis.io/folio/json-schema/folio-deployment-descriptor-schema.json",
  "title": "DeploymentDescriptor",
  "description": "Module deployment information. There are two modes: deployment managed by Okapi (with nodeId specified) and remote module (with URL specified).",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/folio-deployment-api-openapi.yml#/components/schemas/DeploymentDescriptor",
  "id": "DeploymentDescriptor.json",
  "type": "object",
  "additionalProperties": false,
  "properties": {
    "srvcId": {
      "description": "The Module ID for the instance",
      "type": "string"
    },
    "instId": {
      "description": "Instance ID (at least unique for node)",
      "type": "string"
    },
    "nodeId": {
      "description": "Node ID where module is deployed",
      "type": "string"
    },
    "url": {
      "description": "URL where module is deployed (not managed by Okapi)",
      "type": "string"
    },
    "descriptor": {
      "description": "Deployment details",
      "$ref": "#/$defs/LaunchDescriptor"
    }
  },
  "required": [
    "srvcId"
  ],
  "$defs": {
    "LaunchDescriptor": {
      "$schema": "http://json-schema.org/draft-04/schema#",
      "id": "LaunchDescriptor.json",
      "title": "LaunchDescriptor",
      "description": "Specifies how a module is deployed and undeployed",
      "type": "object"
    }
  }
}