{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "title": "Code Block",
  "description": "Server-rendered code block with language label and optional copy button.",
  "type": "object",
  "properties": {
    "language": {
      "type": "string",
      "title": "Language",
      "description": "Source language used as the chroma-style class and figcaption label",
      "x-editor": "select",
      "enum": ["text", "bash", "shell", "javascript", "typescript", "go", "json", "html", "css", "yaml", "sql", "rust", "python"],
      "default": "text"
    },
    "code": {
      "type": "string",
      "title": "Code",
      "description": "Block contents",
      "x-editor": "textarea"
    },
    "copy": {
      "type": "string",
      "title": "Copy button",
      "description": "Show a copy-to-clipboard button in the caption",
      "x-editor": "select",
      "enum": ["on", "off"],
      "default": "on"
    }
  }
}
