{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://rehearse.kurvball.ca/schema/v1/up.schema.json",
  "title": "Rehearse v1: rehearse up --json and rehearse down --json",
  "description": "The services rehearse up brought up (and left running), or rehearse down stopped.",
  "type": "object",
  "required": ["v", "checkout", "world", "services"],
  "properties": {
    "v": {
      "$ref": "common.schema.json#/$defs/v"
    },
    "checkout": {
      "description": "The checkout, or null for rehearse down --all.",
      "type": ["string", "null"]
    },
    "world": {
      "type": ["string", "null"]
    },
    "services": {
      "type": "array",
      "items": {
        "type": "object",
        "required": ["name", "checkout", "pid"],
        "properties": {
          "name": {
            "type": "string"
          },
          "checkout": {
            "type": "string"
          },
          "url": {
            "type": ["string", "null"]
          },
          "port": {
            "type": ["integer", "null"]
          },
          "pid": {
            "type": "integer"
          },
          "since": {
            "type": "string",
            "format": "date-time"
          },
          "standins": {
            "description": "The stand-ins it runs with; name:real when the real one was chosen.",
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      }
    }
  }
}
