{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/laddro-com/json-schema/laddro-com-cover-letter-request-schema.json",
  "title": "CoverLetterRequest",
  "x-generated": "2026-11-14",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/laddro-com-openapi.json#/components/schemas/CoverLetterRequest",
  "type": "object",
  "required": [
    "positionName"
  ],
  "properties": {
    "resumeId": {
      "type": "string",
      "format": "uuid",
      "description": "Resume to base the cover letter on. If omitted, the default resume is used."
    },
    "positionName": {
      "type": "string"
    },
    "jobDescription": {
      "type": "string",
      "maxLength": 50000,
      "description": "Either this or jobUrl is required."
    },
    "jobUrl": {
      "type": "string",
      "format": "uri",
      "description": "URL to the job posting."
    },
    "language": {
      "type": "string"
    },
    "templateId": {
      "type": "string",
      "description": "Template for PDF rendering."
    },
    "colorId": {
      "type": "string",
      "description": "Color scheme ID."
    },
    "font": {
      "type": "string",
      "description": "Font family."
    },
    "spacing": {
      "type": "number"
    },
    "margin": {
      "type": "number"
    },
    "fontSize": {
      "type": "number"
    },
    "pageNumbering": {
      "type": "string",
      "enum": [
        "none",
        "simple",
        "fraction",
        "page"
      ]
    }
  }
}