{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/converttoit-com/json-schema/converttoit-com-format-list-schema.json",
  "title": "FormatList",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/converttoit-com-openapi.yml#/components/schemas/FormatList",
  "type": "object",
  "required": [
    "ok",
    "requestId",
    "count",
    "total",
    "filters",
    "items"
  ],
  "properties": {
    "ok": {
      "type": "boolean",
      "const": true
    },
    "requestId": {
      "type": "string"
    },
    "count": {
      "type": "integer",
      "description": "Formats returned."
    },
    "total": {
      "type": "integer",
      "description": "Formats before filtering."
    },
    "filters": {
      "type": "object",
      "properties": {
        "category": {
          "type": [
            "array",
            "null"
          ],
          "items": {
            "type": "string"
          }
        },
        "from": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "to": {
          "type": [
            "boolean",
            "null"
          ]
        },
        "q": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Format"
      }
    }
  },
  "$defs": {
    "Category": {
      "description": "One category, several, or null when the format has none.",
      "type": [
        "string",
        "array",
        "null"
      ],
      "items": {
        "type": "string"
      }
    },
    "Format": {
      "type": "object",
      "required": [
        "name",
        "format",
        "extension",
        "mime",
        "category",
        "from",
        "to",
        "lossless",
        "handlers"
      ],
      "properties": {
        "name": {
          "type": "string"
        },
        "format": {
          "type": "string"
        },
        "extension": {
          "type": "string"
        },
        "mime": {
          "type": "string"
        },
        "category": {
          "$ref": "#/$defs/Category"
        },
        "from": {
          "type": "boolean",
          "description": "Can be read (converted from)."
        },
        "to": {
          "type": "boolean",
          "description": "Can be written (converted to)."
        },
        "lossless": {
          "type": "boolean"
        },
        "handlers": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Converters that support the format."
        }
      }
    }
  }
}