{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/observeinc/json-schema/observeinc-input-definition-schema.json",
  "title": "InputDefinition",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/observeinc-export-api-openapi.yml#/components/schemas/InputDefinition",
  "type": "object",
  "required": [
    "inputName"
  ],
  "properties": {
    "inputName": {
      "description": "The @name used to reference this input in OPAL (without the @ sign)",
      "type": "string"
    },
    "inputRole": {
      "description": "Data or Reference, defaults to Data if not specified.",
      "type": "string"
    },
    "datasetId": {
      "description": "The dataset ID (as int64-string) to bind to this name.",
      "type": "string",
      "format": "int64"
    },
    "datasetPath": {
      "description": "The dataset name as Workspace.path/Name to bind to this name. datasetId takes precedence if both are set; on read, this is populated alongside datasetId as a portable reference.",
      "type": "string"
    },
    "stageId": {
      "description": "The stageID of the previously defined stage to reference, if it's a stage and not a dataset.",
      "type": "string"
    },
    "parameterId": {
      "description": "The parameter ID to take the input dataset reference from. (Advanced usage only)",
      "type": "string"
    }
  }
}