{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/programmes-net/json-schema/programmes-net-html-format-schema.json",
  "title": "html.format",
  "description": "Pretty-print HTML.",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/programmes-net-formatters-validators-api-openapi.yml#/components/schemas/html.format",
  "type": "object",
  "properties": {
    "operation": {
      "const": "format"
    },
    "input": {
      "type": "string",
      "description": "The HTML to format.",
      "maxLength": 32768
    },
    "options": {
      "type": "object",
      "properties": {
        "indentSize": {
          "type": "integer",
          "description": "Indent width in spaces.",
          "minimum": 0,
          "maximum": 8,
          "default": 2
        },
        "wrapAttributes": {
          "type": "boolean",
          "description": "Put each attribute on its own line.",
          "default": false
        },
        "preserveInline": {
          "type": "boolean",
          "description": "Keep inline elements on one line.",
          "default": true
        }
      }
    }
  },
  "required": [
    "operation"
  ]
}