{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/kanbai-app/json-schema/kanbai-app-kanbai-get-template-output-schema.json",
  "title": "KanbaiGetTemplateOutput",
  "x-generated": "2026-11-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/kanbai-app-openapi.json#/components/schemas/KanbaiGetTemplateOutput",
  "type": "object",
  "properties": {
    "template": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "exclusiveMinimum": 0,
          "maximum": 9007199254740991
        },
        "slug": {
          "type": "string"
        },
        "name": {
          "type": "string"
        },
        "description": {
          "type": [
            "string",
            "null"
          ]
        },
        "source_guide": {
          "type": [
            "string",
            "null"
          ]
        },
        "task_count": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "url": {
          "type": "string"
        },
        "tasks": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "order_index": {
                "type": "integer",
                "minimum": -9007199254740991,
                "maximum": 9007199254740991
              },
              "title": {
                "type": "string"
              },
              "description": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "default_status": {
                "type": "string"
              },
              "default_priority": {
                "type": "string"
              },
              "priority_basis": {
                "anyOf": [
                  {
                    "type": "string",
                    "enum": [
                      "source_recorded",
                      "operational_default",
                      "operator"
                    ]
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "offset_days": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              },
              "duration_days": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": -9007199254740991,
                    "maximum": 9007199254740991
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            },
            "required": [
              "order_index",
              "title",
              "description",
              "default_status",
              "default_priority",
              "priority_basis",
              "offset_days",
              "duration_days"
            ],
            "additionalProperties": false
          }
        }
      },
      "required": [
        "id",
        "slug",
        "name",
        "description",
        "source_guide",
        "task_count",
        "url",
        "tasks"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "template"
  ],
  "additionalProperties": false
}