addedInput schema / properties / items / items / properties
Added value: +{
+ "code": {
+ "maxLength": 500000,
+ "minLength": 1,
+ "type": "string"
+ },
+ "diagram_type": {
+ "minLength": 1,
+ "type": "string"
+ },
+ "output_format": {
+ "enum": [
+ "svg",
+ "png",
+ "pdf",
+ "jpeg",
+ "txt",
+ "base64",
+ "html"
+ ]
+ },
+ "scale": {
+ "minimum": 0.1,
+ "type": "number"
+ },
+ "theme": {
+ "type": "string"
+ }
+}
addedOutput schema / properties
Added value: +{
+ "error": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "results": {
+ "items": {
+ "description": "One indexed item returned by generate_uml_batch (a DiagramResult plus its index).",
+ "properties": {
+ "attempts": {
+ "anyOf": [
+ {
+ "items": {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Renderers tried, in order: backend, ok, status, duration_ms, error_summary, error_code, retry_count."
+ },
+ "cache_hit": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "cache_lookup_ms": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "code": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "content_base64": {
+ "anyOf": [
+ {
+ "maxLength": 48000,
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Bounded inline preview (max 48,000 base64 characters); larger images use a resized PNG preview when possible."
+ },
+ "diagram_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "display_markdown": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "error": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "error_detail": {
+ "anyOf": [
+ {
+ "additionalProperties": true,
+ "type": "object"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Failed requests only: code, message, retryable, line, column, suggestion, diagram_type, backend."
+ },
+ "fallback_used": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "index": {
+ "type": "integer"
+ },
+ "inline_note": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "inline_omitted": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "local_path": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "mime_type": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "output_format": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "playground": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "preview_resized": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "render_ms": {
+ "type": [
+ "number",
+ "null"
+ ]
+ },
+ "source": {
+ "type": [
+ "string",
+ "null"
+ ]
+ },
+ "source_omitted": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "success": {
+ "type": [
+ "boolean",
+ "null"
+ ]
+ },
+ "url": {
+ "type": [
+ "string",
+ "null"
+ ]
+ }
+ },
+ "required": [
+ "index"
+ ],
+ "type": "object"
+ },
+ "type": "array"
+ }
+}