{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-automation/json-schema/microsoft-azure-automation-runbook-draft-schema.json",
  "title": "RunbookDraft",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-automation-runbookdraft-api-openapi.yml#/components/schemas/RunbookDraft",
  "type": "object",
  "properties": {
    "inEdit": {
      "type": "boolean",
      "description": "Gets or sets whether runbook is in edit mode."
    },
    "draftContentLink": {
      "$ref": "#/$defs/ContentLink",
      "description": "Gets or sets the draft runbook content link."
    },
    "creationTime": {
      "type": "string",
      "format": "date-time",
      "description": "Gets or sets the creation time of the runbook draft."
    },
    "lastModifiedTime": {
      "type": "string",
      "format": "date-time",
      "description": "Gets or sets the last modified time of the runbook draft."
    },
    "parameters": {
      "type": "object",
      "description": "Gets or sets the runbook draft parameters.",
      "additionalProperties": {
        "$ref": "#/$defs/RunbookParameter"
      }
    },
    "outputTypes": {
      "type": "array",
      "description": "Gets or sets the runbook output types.",
      "items": {
        "type": "string"
      }
    }
  },
  "$defs": {
    "ContentHash": {
      "type": "object",
      "description": "Definition of the runbook property type.",
      "properties": {
        "algorithm": {
          "type": "string",
          "description": "Gets or sets the content hash algorithm used to hash the content."
        },
        "value": {
          "type": "string",
          "description": "Gets or sets expected hash value of the content."
        }
      },
      "required": [
        "algorithm",
        "value"
      ]
    },
    "ContentLink": {
      "type": "object",
      "description": "Definition of the content link.",
      "properties": {
        "uri": {
          "type": "string",
          "description": "Gets or sets the uri of content."
        },
        "contentHash": {
          "$ref": "#/$defs/ContentHash",
          "description": "Gets or sets the hash."
        },
        "version": {
          "type": "string",
          "description": "Gets or sets the version of the content."
        }
      }
    },
    "RunbookParameter": {
      "type": "object",
      "description": "Definition of the runbook parameter type.",
      "properties": {
        "type": {
          "type": "string",
          "description": "Gets or sets the type of the parameter."
        },
        "isMandatory": {
          "type": "boolean",
          "description": "Gets or sets a Boolean value to indicate whether the parameter is mandatory or not."
        },
        "position": {
          "type": "integer",
          "format": "int32",
          "description": "Get or sets the position of the parameter."
        },
        "defaultValue": {
          "type": "string",
          "description": "Gets or sets the default value of parameter."
        }
      }
    }
  }
}