{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://spec.soustack.org/stacks/prep.schema.json",
  "title": "Prep Stack",
  "type": "object",
  "properties": {
    "miseEnPlace": {
      "type": "array",
      "minItems": 1,
      "items": {
        "$ref": "#/$defs/miseEnPlaceTask"
      }
    }
  },
  "required": ["miseEnPlace"],
  "$defs": {
    "miseEnPlaceTask": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "pattern": "^[A-Za-z0-9._-]+$"
        },
        "text": {
          "type": "string",
          "minLength": 1
        },
        "inputs": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "uniqueItems": true,
          "minItems": 1
        },
        "usesEquipment": {
          "type": "array",
          "items": {
            "type": "string",
            "pattern": "^[A-Za-z0-9._-]+$"
          },
          "uniqueItems": true,
          "minItems": 1
        }
      },
      "required": ["text"],
      "additionalProperties": false,
      "patternProperties": {
        "^x-": {
          "$ref": "../defs/common.schema.json#/properties/extensionLaneValue"
        }
      }
    },
    "prepItem": {
      "type": "object",
      "properties": {
        "verb": {
          "type": "string",
          "minLength": 1
        },
        "detail": {
          "type": "string"
        }
      },
      "required": ["verb"],
      "additionalProperties": false,
      "patternProperties": {
        "^x-": {
          "$ref": "../defs/common.schema.json#/properties/extensionLaneValue"
        }
      }
    }
  },
  "additionalProperties": false
}

