{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/legivel-com/json-schema/legivel-com-template-render-request-schema.json",
  "title": "TemplateRenderRequest",
  "description": "The data for one render. A field's value is text in the PDF, except a picture field's, which must be the picture itself: a PNG or JPEG as a base64 data URL of at most 4 MB. A value never becomes a link or a style, and nothing is fetched from it.",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/legivel-com-openapi.json#/components/schemas/TemplateRenderRequest",
  "type": "object",
  "properties": {
    "data": {
      "type": "object",
      "description": "The values of the fields, by path: `{\"customer\": {\"name\": \"Jordan\"}}`. Anything but an object answers 400 `invalid_request`."
    },
    "csv": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "CSV text by name, for the tables that read `csv:<name>`. The first row names the columns; comma, semicolon or tab."
    },
    "today": {
      "type": "string",
      "format": "date",
      "description": "The date TODAY() gives in the template's formulas, YYYY-MM-DD. Default: today in UTC. Send it to render the same PDF again later."
    }
  },
  "additionalProperties": false
}