Sha256: 358b70d199717b059a346371b5bc1e816c22689e8a892ba4b5a3be833561e370

Contents?: true

Size: 1.88 KB

Versions: 4

Compression:

Stored size: 1.88 KB

Contents

{
  "id": "file:task",
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "Task",
  "description": "Task schema for bolt-server",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Task name"
    },
    "metadata": {
      "type": "object",
      "description": "The metadata object is optional, and contains metadata about the task being run",
      "properties": {
        "description": {
          "type": "string",
          "description": "The task description from it's metadata"
        },
        "parameters": {
          "type": "object",
          "description": "Object whose keys are parameter names, and values are objects",
          "properties": {
            "description": {
              "type": "string",
              "description": "Parameter description"
            },
            "type": {
              "type": "string",
              "description": "The type the parameter should accept"
            },
            "sensitive": {
              "description": "Whether the task runner should treat the parameter value as sensitive",
              "type": "boolean"
            }
          }
        },
        "input_method": {
          "type": "string",
          "enum": ["stdin", "environment", "powershell"],
          "description": "What input method should be used to pass params to the task"
        }
      }
    },
    "file": {
      "type": "object",
      "description": "File name and content",
      "properties": {
        "filename": {
          "type": "string",
          "description": "Name of the task file"
        },
        "file_content": {
          "type": "string",
          "description": "Task's base64 encoded file content"
        }
      },
      "required": ["filename", "file_content"],
      "additionalProperties": false
    }
  },
  "required": ["name", "file"],
  "additionalProperties": false
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bolt-1.1.0 lib/bolt_ext/schemas/task.json
bolt-1.0.0 lib/bolt_ext/schemas/task.json
bolt-0.25.0 lib/bolt_ext/schemas/task.json
bolt-0.24.0 lib/bolt_ext/schemas/task.json