{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/programmes-net/json-schema/programmes-net-sql-beautify-schema.json",
  "title": "sql.beautify",
  "description": "Beautify SQL with newlines before clauses.",
  "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/sql.beautify",
  "type": "object",
  "properties": {
    "operation": {
      "const": "beautify"
    },
    "input": {
      "type": "string",
      "description": "The SQL to beautify.",
      "maxLength": 4096
    },
    "options": {
      "type": "object",
      "properties": {
        "uppercaseKeywords": {
          "type": "boolean",
          "description": "Uppercase SQL keywords.",
          "default": true
        },
        "indentSize": {
          "type": "integer",
          "description": "Indent width in spaces.",
          "minimum": 0,
          "maximum": 8,
          "default": 2
        },
        "lineBreaksBeforeClauses": {
          "type": "boolean",
          "description": "Start each clause (FROM, WHERE, …) on a new line.",
          "default": true
        }
      }
    }
  },
  "required": [
    "operation"
  ]
}