{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/converttoit-com/json-schema/converttoit-com-handler-list-schema.json",
  "title": "HandlerList",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/converttoit-com-openapi.yml#/components/schemas/HandlerList",
  "type": "object",
  "required": [
    "ok",
    "requestId",
    "count",
    "items"
  ],
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    },
    "requestId": {
      "type": "string"
    },
    "count": {
      "type": "integer"
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Handler"
      }
    }
  },
  "$defs": {
    "Category": {
      "description": "One category, several, or null when the format has none.",
      "type": [
        "string",
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "Handler": {
      "type": "object",
      "required": [
        "handler",
        "formatCount",
        "categories",
        "formats"
      ],
      "properties": {
        "handler": {
          "type": "string"
        },
        "formatCount": {
          "type": "integer"
        },
        "categories": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "formats": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/HandlerFormat"
          }
        }
      }
    },
    "HandlerFormat": {
      "type": "object",
      "required": [
        "name",
        "format",
        "extension",
        "mime",
        "category",
        "internal",
        "from",
        "to",
        "lossless"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "format": {
          "type": "string"
        },
        "extension": {
          "type": "string"
        },
        "mime": {
          "type": "string"
        },
        "category": {
          "$ref": "#/$defs/Category"
        },
        "internal": {
          "type": "string",
          "description": "The converter's own name for the format."
        },
        "from": {
          "type": "boolean"
        },
        "to": {
          "type": "boolean"
        },
        "lossless": {
          "type": "boolean"
        }
      }
    }
  }
}