{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tubearchivist/json-schema/tubearchivist-snapshot-list-schema.json",
  "title": "SnapshotList",
  "description": "serialize snapshot list response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tubearchivist-appsettings-api-openapi.yml#/components/schemas/SnapshotList",
  "type": "object",
  "properties": {
    "next_exec": {
      "type": "integer"
    },
    "next_exec_str": {
      "type": "string"
    },
    "expire_after": {
      "type": "string"
    },
    "snapshots": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/SnapshotItem"
      }
    }
  },
  "required": [
    "expire_after",
    "next_exec",
    "next_exec_str",
    "snapshots"
  ],
  "$defs": {
    "SnapshotItem": {
      "type": "object",
      "description": "serialize snapshot response",
      "properties": {
        "id": {
          "type": "string"
        },
        "state": {
          "type": "string"
        },
        "es_version": {
          "type": "string"
        },
        "start_date": {
          "type": "string"
        },
        "end_date": {
          "type": "string"
        },
        "end_stamp": {
          "type": "integer"
        },
        "duration_s": {
          "type": "integer"
        }
      },
      "required": [
        "duration_s",
        "end_date",
        "end_stamp",
        "es_version",
        "id",
        "start_date",
        "state"
      ]
    }
  }
}