{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/langbly-com/json-schema/langbly-com-translate-request-schema.json",
  "title": "TranslateRequest",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/langbly-com-openapi.json#/components/schemas/TranslateRequest",
  "type": "object",
  "required": [
    "q",
    "target"
  ],
  "properties": {
    "q": {
      "description": "The text to translate. A single string or an array of strings.",
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      ]
    },
    "target": {
      "type": "string",
      "description": "Target language code (ISO 639-1, for example nl, de, fr)."
    },
    "source": {
      "type": "string",
      "description": "Source language code. Omit to auto-detect."
    },
    "format": {
      "type": "string",
      "description": "Whether the text is plain text or HTML. HTML markup is preserved.",
      "enum": [
        "text",
        "html"
      ],
      "default": "text"
    },
    "formality": {
      "type": "string",
      "description": "Formality of the translation, where the language supports it.",
      "enum": [
        "formal",
        "informal",
        "neutral"
      ]
    }
  }
}