{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://nao1215.github.io/jsonize/schemas/screen/list.json",
  "title": "screen/list",
  "description": "screen -ls sessions and socket directory",
  "x-jsonize": {
    "definition": "screen/list",
    "version": 1
  },
  "type": "object",
  "properties": {
    "sessions": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "pid": {
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "started": {
            "type": [
              "string",
              "null"
            ]
          },
          "state": {
            "type": "string"
          }
        },
        "required": [
          "pid",
          "name",
          "started",
          "state"
        ]
      }
    },
    "sockets": {
      "type": "object",
      "properties": {
        "count": {
          "type": "integer"
        },
        "directory": {
          "type": "string"
        }
      },
      "required": [
        "count",
        "directory"
      ]
    }
  },
  "required": [
    "sessions",
    "sockets"
  ]
}
