{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://nao1215.github.io/jsonize/schemas/sc/query.json",
  "title": "sc/query",
  "description": "sc query, the type, state and exit codes of each service",
  "x-jsonize": {
    "definition": "sc/query",
    "version": 1
  },
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "service_name": {
        "type": "string"
      },
      "display_name": {
        "type": "string"
      },
      "type_code": {
        "type": "string"
      },
      "type": {
        "type": "string"
      },
      "interactive": {
        "type": "boolean"
      },
      "state_code": {
        "type": "integer"
      },
      "state": {
        "type": "string",
        "enum": [
          "CONTINUE_PENDING",
          "PAUSED",
          "PAUSE_PENDING",
          "RUNNING",
          "START_PENDING",
          "STOPPED",
          "STOP_PENDING"
        ]
      },
      "controls": {
        "type": [
          "array",
          "null"
        ],
        "items": {
          "type": "string"
        }
      },
      "win32_exit_code": {
        "type": "integer"
      },
      "service_exit_code": {
        "type": "integer"
      },
      "checkpoint": {
        "type": "string"
      },
      "wait_hint": {
        "type": "string"
      }
    },
    "required": [
      "service_name",
      "display_name",
      "type_code",
      "type",
      "interactive",
      "state_code",
      "state",
      "controls",
      "win32_exit_code",
      "service_exit_code",
      "checkpoint",
      "wait_hint"
    ]
  }
}
