{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "description": "Parameters to instantiate Theia",
  "additionalProperties": false,
  "properties": {
    "autorun": {
      "title": "Automatically Run Sofware/Instance",
      "description": "The option used to pilot automatic build and run of software and instances hosted inside Theia. When 'running', build and run is done automatically in the background. When 'stopped' build and run processes are stopped and need to be run manually. When 'user-controlled', the user can manage it directly in the local supervisord. ",
      "type": "string",
      "enum": [
        "running",
        "stopped",
        "user-controlled"
      ],
      "default": "running"
    },
    "initial-embedded-instance": {
      "title": "Initial Embedded Instance Configuration",
      "description": "One-shot optional JSON preconfiguration for an embedded instance. Only applied once when Theia is instantiated. Changing this option afterward will have no effect.",
      "type": "string",
      "examples": [
        "{\"software-url\": \"~/srv/project/slapos/software/html5as-base/software.cfg\"}",
        "{\"software-url\": \"~/srv/project/slapos/software/html5as/software.cfg\", \"software-type\": \"replicate\", \"instance-parameters\": {\"replicate-quantity\": 3}}"
      ]
    },
    "frontend-guid": {
      "title": "Frontend Instance ID",
      "description": "Unique identifier of the frontend instance, like \"SOFTINST-11031\".",
      "type": "string"
    },
    "frontend-sr": {
      "title": "Frontend Software URL",
      "description": "Software Release URL of the frontend instance, like \"http://example.com/path/to/software.cfg\".",
      "type": "string",
      "format": "uri",
      "default": "http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg"
    },
    "frontend-sr-type": {
      "title": "Frontend Software Type",
      "description": "Type of the frontend instance, like \"frontend\".",
      "type": "string",
      "default": "RootSoftwareInstance"
    },
    "additional-frontend-guid": {
      "title": "Additional Frontend Instance ID",
      "description": "Unique identifier of the additional frontend instance, like \"SOFTINST-11031\", if empty won't be requested.",
      "type": "string"
    },
    "additional-frontend-sr": {
      "title": "Additional Frontend Software URL",
      "description": "Software Release URL of the frontend instance, like \"http://example.com/path/to/software.cfg\".",
      "type": "string",
      "format": "uri",
      "default": "http://git.erp5.org/gitweb/slapos.git/blob_plain/HEAD:/software/apache-frontend/software.cfg"
    },
    "additional-frontend-sr-type": {
      "title": "Additional Frontend Software Type",
      "description": "Type of the frontend instance, like \"frontend\".",
      "type": "string",
      "default": "RootSoftwareInstance"
    }
  }
}
