{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tubearchivist/json-schema/tubearchivist-ping-schema.json",
  "title": "Ping",
  "description": "serialize ping response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tubearchivist-ping-api-openapi.yml#/components/schemas/Ping",
  "type": "object",
  "properties": {
    "response": {
      "$ref": "#/$defs/ResponseEnum"
    },
    "user": {
      "type": "integer"
    },
    "version": {
      "type": "string"
    },
    "ta_update": {
      "$ref": "#/$defs/PingUpdate"
    }
  },
  "required": [
    "response",
    "user",
    "version"
  ],
  "$defs": {
    "PingUpdate": {
      "type": "object",
      "description": "serialize update notification",
      "properties": {
        "status": {
          "type": "boolean"
        },
        "version": {
          "type": "string"
        },
        "is_breaking": {
          "type": "boolean"
        }
      },
      "required": [
        "is_breaking",
        "status",
        "version"
      ]
    },
    "ResponseEnum": {
      "enum": [
        "pong"
      ],
      "type": "string",
      "description": "* `pong` - pong"
    }
  }
}