{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/laddro-com/json-schema/laddro-com-tailor-request-schema.json",
  "title": "TailorRequest",
  "x-generated": "2026-11-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/laddro-com-openapi.json#/components/schemas/TailorRequest",
  "type": "object",
  "required": [
    "positionName"
  ],
  "properties": {
    "resumeId": {
      "type": "string",
      "format": "uuid",
      "description": "Resume to tailor. If omitted, the user's default resume is used."
    },
    "positionName": {
      "type": "string",
      "description": "Job title you are applying for"
    },
    "jobDescription": {
      "type": "string",
      "maxLength": 50000,
      "description": "Full job description text. Either this or jobUrl is required."
    },
    "jobUrl": {
      "type": "string",
      "format": "uri",
      "description": "URL to the job posting. The API will fetch and extract the description."
    },
    "mode": {
      "type": "string",
      "enum": [
        "standard",
        "new"
      ],
      "default": "standard",
      "description": "'standard' rewrites existing sections. 'new' allows full restructuring."
    },
    "language": {
      "type": "string",
      "description": "Language code for the output (e.g. 'en', 'de', 'fr'). Defaults to resume language."
    },
    "includeCoverLetter": {
      "type": "boolean",
      "default": false,
      "description": "Also generate a cover letter. Returns a ZIP with resume.pdf and cover-letter.pdf."
    },
    "templateId": {
      "type": "string",
      "description": "Template for PDF rendering. Defaults to resume's saved template."
    },
    "colorId": {
      "type": "string",
      "description": "Color scheme ID."
    },
    "font": {
      "type": "string",
      "description": "Font family."
    },
    "spacing": {
      "type": "number",
      "description": "Line spacing."
    },
    "margin": {
      "type": "number",
      "description": "Page margin."
    },
    "fontSize": {
      "type": "number",
      "description": "Base font size."
    },
    "pageNumbering": {
      "type": "string",
      "enum": [
        "none",
        "simple",
        "fraction",
        "page"
      ]
    }
  }
}