{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://www.lendmail.fit/schemas/analysis-v1.json",
  "title": "LendMail mail-offer analysis, v1",
  "description": "Structured analysis of one mailed credit or loan offer, returned as analysis_v1 by the LendMail connector (get_mail_analysis, run_sample_analysis) and by /api/bot-analyze. Every non-derived offer fact carries a confidence level and a source. Keys prefixed x-lendmail-* are annotations: x-lendmail-status is 'existing' (also in the legacy analysis object, possibly renamed), 'changed' (free text in the legacy object, structured here) or 'new'; x-lendmail-maps-from names the legacy field.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "schema_version",
    "analysis_id",
    "analyzed_at",
    "status",
    "offer",
    "red_flags",
    "la_mark",
    "guidance",
    "summary",
    "confidence",
    "disclosures",
    "data_handling"
  ],
  "properties": {
    "schema_version": {
      "const": "1.0.0",
      "description": "Semantic version of this schema.",
      "x-lendmail-status": "new"
    },
    "analysis_id": {
      "type": "string",
      "pattern": "^[A-Za-z0-9_-]{6,64}$",
      "description": "Stable id for this analysis (for support, feedback and evaluation runs).",
      "x-lendmail-status": "new"
    },
    "session_id": {
      "type": [
        "string",
        "null"
      ],
      "description": "Upload session id from start_mail_analysis, when the analysis came from a session.",
      "x-lendmail-status": "existing",
      "x-lendmail-maps-from": "session_id"
    },
    "analyzed_at": {
      "type": "string",
      "format": "date-time",
      "description": "When the analysis was produced (UTC, ISO 8601).",
      "x-lendmail-status": "new"
    },
    "status": {
      "enum": [
        "complete",
        "not_offer",
        "unreadable"
      ],
      "description": "complete = an offer was read. not_offer / unreadable carry a message and empty offer facts.",
      "x-lendmail-status": "existing",
      "x-lendmail-maps-from": "status + analysis.status (ok|not_offer|unreadable)"
    },
    "message": {
      "type": [
        "string",
        "null"
      ],
      "description": "Plain-language note for not_offer / unreadable (what to fix).",
      "x-lendmail-status": "existing",
      "x-lendmail-maps-from": "message"
    },
    "offer": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "lender",
        "product_type",
        "offer_code",
        "amount_range",
        "apr",
        "fees",
        "term",
        "response_deadline",
        "response_url",
        "prescreened"
      ],
      "properties": {
        "lender": {
          "description": "Company or lender behind the offer, as branded on the piece.",
          "type": "object",
          "required": [
            "value",
            "confidence",
            "source"
          ],
          "additionalProperties": false,
          "properties": {
            "value": {
              "type": [
                "string",
                "null"
              ]
            },
            "confidence": {
              "$ref": "#/$defs/confidence"
            },
            "source": {
              "$ref": "#/$defs/source"
            }
          },
          "x-lendmail-status": "existing",
          "x-lendmail-maps-from": "analysis.lender (issuer)"
        },
        "product_type": {
          "description": "Normalized product category.",
          "type": "object",
          "required": [
            "value",
            "confidence",
            "source"
          ],
          "additionalProperties": false,
          "properties": {
            "value": {
              "enum": [
                "personal_loan",
                "credit_card",
                "balance_transfer_card",
                "home_equity",
                "auto",
                "other",
                null
              ]
            },
            "confidence": {
              "$ref": "#/$defs/confidence"
            },
            "source": {
              "$ref": "#/$defs/source"
            }
          },
          "x-lendmail-status": "existing",
          "x-lendmail-maps-from": "key_terms.category"
        },
        "product_label": {
          "description": "Short human label, e.g. 'Fixed-rate personal loan'.",
          "type": "object",
          "required": [
            "value",
            "confidence",
            "source"
          ],
          "additionalProperties": false,
          "properties": {
            "value": {
              "type": [
                "string",
                "null"
              ]
            },
            "confidence": {
              "$ref": "#/$defs/confidence"
            },
            "source": {
              "$ref": "#/$defs/source"
            }
          },
          "x-lendmail-status": "existing",
          "x-lendmail-maps-from": "analysis.offer_type"
        },
        "prescreened": {
          "description": "True when the piece says pre-approved / prescreened / selected.",
          "type": "object",
          "required": [
            "value",
            "confidence",
            "source"
          ],
          "additionalProperties": false,
          "properties": {
            "value": {
              "type": [
                "boolean",
                "null"
              ]
            },
            "confidence": {
              "$ref": "#/$defs/confidence"
            },
            "source": {
              "$ref": "#/$defs/source"
            }
          },
          "x-lendmail-status": "changed",
          "x-lendmail-maps-from": "key_terms.pre_approved (free text) and tags"
        },
        "prescreen_explanation": {
          "type": [
            "string",
            "null"
          ],
          "description": "What 'pre-approved' means for this piece, using only what is printed.",
          "x-lendmail-status": "existing",
          "x-lendmail-maps-from": "key_terms.pre_approved"
        },
        "offer_code": {
          "description": "Printed offer / confirmation / reservation / PCN code, exactly as shown. Not the LA mark code.",
          "type": "object",
          "required": [
            "value",
            "confidence",
            "source"
          ],
          "additionalProperties": false,
          "properties": {
            "value": {
              "type": [
                "string",
                "null"
              ]
            },
            "confidence": {
              "$ref": "#/$defs/confidence"
            },
            "source": {
              "$ref": "#/$defs/source"
            }
          },
          "x-lendmail-status": "existing",
          "x-lendmail-maps-from": "confirmation_number"
        },
        "amount_range": {
          "description": "Loan amount or credit limit range as printed.",
          "type": "object",
          "required": [
            "value",
            "confidence",
            "source"
          ],
          "additionalProperties": false,
          "properties": {
            "value": {
              "type": [
                "object",
                "null"
              ],
              "additionalProperties": false,
              "required": [
                "min",
                "max",
                "currency",
                "as_printed"
              ],
              "properties": {
                "min": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "minimum": 0
                },
                "max": {
                  "type": [
                    "number",
                    "null"
                  ],
                  "minimum": 0
                },
                "currency": {
                  "const": "USD"
                },
                "as_printed": {
                  "type": "string"
                }
              }
            },
            "confidence": {
              "$ref": "#/$defs/confidence"
            },
            "source": {
              "$ref": "#/$defs/source"
            }
          },
          "x-lendmail-status": "new"
        },
        "apr": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "headline",
            "range",
            "rate_type",
            "intro"
          ],
          "properties": {
            "headline": {
              "description": "The big promise as printed (e.g. 'As low as 8.99% APR').",
              "type": "object",
              "required": [
                "value",
                "confidence",
                "source"
              ],
              "additionalProperties": false,
              "properties": {
                "value": {
                  "type": [
                    "string",
                    "null"
                  ]
                },
                "confidence": {
                  "$ref": "#/$defs/confidence"
                },
                "source": {
                  "$ref": "#/$defs/source"
                }
              },
              "x-lendmail-status": "existing",
              "x-lendmail-maps-from": "key_terms.headline_offer"
            },
            "range": {
              "description": "Full APR range from the fine print (the go-to rate after any intro period).",
              "type": "object",
              "required": [
                "value",
                "confidence",
                "source"
              ],
              "additionalProperties": false,
              "properties": {
                "value": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "required": [
                    "min_pct",
                    "max_pct",
                    "as_printed"
                  ],
                  "properties": {
                    "min_pct": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "max_pct": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "as_printed": {
                      "type": "string"
                    }
                  }
                },
                "confidence": {
                  "$ref": "#/$defs/confidence"
                },
                "source": {
                  "$ref": "#/$defs/source"
                }
              },
              "x-lendmail-status": "changed",
              "x-lendmail-maps-from": "key_terms.fine_print (free text)"
            },
            "rate_type": {
              "description": "Fixed or variable, as printed.",
              "type": "object",
              "required": [
                "value",
                "confidence",
                "source"
              ],
              "additionalProperties": false,
              "properties": {
                "value": {
                  "enum": [
                    "fixed",
                    "variable",
                    "unknown"
                  ]
                },
                "confidence": {
                  "$ref": "#/$defs/confidence"
                },
                "source": {
                  "$ref": "#/$defs/source"
                }
              },
              "x-lendmail-status": "new"
            },
            "intro": {
              "description": "Intro / promotional rate, if any (null value when none printed).",
              "type": "object",
              "required": [
                "value",
                "confidence",
                "source"
              ],
              "additionalProperties": false,
              "properties": {
                "value": {
                  "type": [
                    "object",
                    "null"
                  ],
                  "additionalProperties": false,
                  "required": [
                    "rate_pct",
                    "months",
                    "applies_to",
                    "as_printed"
                  ],
                  "properties": {
                    "rate_pct": {
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "months": {
                      "type": [
                        "integer",
                        "null"
                      ]
                    },
                    "applies_to": {
                      "type": [
                        "string",
                        "null"
                      ]
                    },
                    "as_printed": {
                      "type": "string"
                    }
                  }
                },
                "confidence": {
                  "$ref": "#/$defs/confidence"
                },
                "source": {
                  "$ref": "#/$defs/source"
                }
              },
              "x-lendmail-status": "new"
            }
          },
          "x-lendmail-status": "changed",
          "x-lendmail-maps-from": "key_terms.headline_offer / fine_print"
        },
        "fees": {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "status",
            "items"
          ],
          "properties": {
            "status": {
              "enum": [
                "listed",
                "not_listed",
                "partially_listed"
              ],
              "description": "not_listed = the piece prints no fee information; do not read this as 'no fees'."
            },
            "items": {
              "type": "array",
              "items": {
                "type": "object",
                "additionalProperties": false,
                "required": [
                  "name",
                  "as_printed",
                  "confidence",
                  "source"
                ],
                "properties": {
                  "name": {
                    "type": "string"
                  },
                  "as_printed": {
                    "type": "string"
                  },
                  "amount": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "minimum": 0
                  },
                  "pct": {
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "confidence": {
                    "$ref": "#/$defs/confidence"
                  },
                  "source": {
                    "$ref": "#/$defs/source"
                  }
                }
              }
            }
          },
          "x-lendmail-status": "new"
        },
        "term": {
          "description": "Repayment term(s) offered.",
          "type": "object",
          "required": [
            "value",
            "confidence",
            "source"
          ],
          "additionalProperties": false,
          "properties": {
            "value": {
              "type": [
                "object",
                "null"
              ],
              "additionalProperties": false,
              "required": [
                "months",
                "as_printed"
              ],
              "properties": {
                "months": {
                  "type": "array",
                  "items": {
                    "type": "integer",
                    "minimum": 1
                  }
                },
                "as_printed": {
                  "type": "string"
                }
              }
            },
            "confidence": {
              "$ref": "#/$defs/confidence"
            },
            "source": {
              "$ref": "#/$defs/source"
            }
          },
          "x-lendmail-status": "new"
        },
        "response_deadline": {
          "description": "Respond-by date as printed, plus an ISO date when unambiguous.",
          "type": "object",
          "required": [
            "value",
            "confidence",
            "source"
          ],
          "additionalProperties": false,
          "properties": {
            "value": {
              "type": [
                "object",
                "null"
              ],
              "additionalProperties": false,
              "required": [
                "date",
                "as_printed"
              ],
              "properties": {
                "date": {
                  "type": [
                    "string",
                    "null"
                  ],
                  "format": "date"
                },
                "as_printed": {
                  "type": "string"
                }
              }
            },
            "confidence": {
              "$ref": "#/$defs/confidence"
            },
            "source": {
              "$ref": "#/$defs/source"
            }
          },
          "x-lendmail-status": "changed",
          "x-lendmail-maps-from": "key_terms.expires (free text)"
        },
        "response_url": {
          "description": "Official response / vanity URL printed on the piece (never an affiliate link).",
          "type": "object",
          "required": [
            "value",
            "confidence",
            "source"
          ],
          "additionalProperties": false,
          "properties": {
            "value": {
              "type": [
                "string",
                "null"
              ]
            },
            "confidence": {
              "$ref": "#/$defs/confidence"
            },
            "source": {
              "$ref": "#/$defs/source"
            }
          },
          "x-lendmail-status": "existing",
          "x-lendmail-maps-from": "destination_url"
        },
        "stated_features": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Positive terms the piece states (e.g. no prepayment penalty).",
          "x-lendmail-status": "existing",
          "x-lendmail-maps-from": "BotAnalysis.positives (in /bot today, not exposed over MCP)"
        }
      }
    },
    "headline_vs_fine_print": {
      "type": [
        "string",
        "null"
      ],
      "description": "2-3 sentences on the gap between the headline and the fine print.",
      "x-lendmail-status": "existing",
      "x-lendmail-maps-from": "key_terms.headline_vs_fine_print"
    },
    "red_flags": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "basis",
          "quote",
          "reason",
          "severity",
          "confidence",
          "source"
        ],
        "properties": {
          "id": {
            "type": "string",
            "pattern": "^[a-z0-9_]+$",
            "description": "Stable machine id, e.g. apr_range_wide, fees_not_listed."
          },
          "basis": {
            "enum": [
              "quoted_clause",
              "absence",
              "unquoted"
            ],
            "description": "quoted_clause = triggered by printed text; absence = triggered by something missing (quote is null); unquoted = the reader flagged it without a supporting quote (confidence is always low)."
          },
          "confidence": {
            "$ref": "#/$defs/confidence"
          },
          "quote": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 400,
            "description": "Exact triggering clause, with personal details replaced by [name] / [address] / [account]."
          },
          "reason": {
            "type": "string",
            "maxLength": 300
          },
          "severity": {
            "enum": [
              "low",
              "medium",
              "high"
            ]
          },
          "source": {
            "$ref": "#/$defs/source"
          }
        }
      },
      "x-lendmail-status": "changed",
      "x-lendmail-maps-from": "fine_print_flags (strings only today)"
    },
    "score": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "value",
        "reason",
        "worth_your_time"
      ],
      "description": "LendMail's 1-10 Offer Score. Null when la_mark.status is verified (the LendMail Advisors review is shown instead) and when no offer was read.",
      "properties": {
        "value": {
          "type": "integer",
          "minimum": 1,
          "maximum": 10
        },
        "reason": {
          "type": [
            "string",
            "null"
          ]
        },
        "worth_your_time": {
          "type": "boolean"
        }
      },
      "x-lendmail-status": "existing",
      "x-lendmail-maps-from": "offer_score / key reason / worth_your_time"
    },
    "la_mark": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "present",
        "code",
        "status",
        "review_url"
      ],
      "properties": {
        "present": {
          "type": "boolean"
        },
        "code": {
          "type": [
            "string",
            "null"
          ],
          "pattern": "^[A-Z]{2,10}-[0-9]{3}$"
        },
        "status": {
          "enum": [
            "verified",
            "unverified",
            "none"
          ],
          "description": "verified = code is in the LendMail Advisors registry and the lender matches. unverified = a mark was seen but the code is unknown, unreadable or registered to another lender. none = no mark."
        },
        "unverified_reason": {
          "enum": [
            "unknown_code",
            "unreadable_code",
            "lender_mismatch",
            null
          ]
        },
        "lender": {
          "type": [
            "string",
            "null"
          ]
        },
        "sample": {
          "type": "boolean",
          "description": "True for fictional demo lenders (e.g. Apex Credit)."
        },
        "review_url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Public LendMail Advisors review page, when one exists."
        },
        "review_summary": {
          "type": [
            "string",
            "null"
          ],
          "description": "LendMail Advisors' short review text (verified only)."
        },
        "checked_at": {
          "type": [
            "string",
            "null"
          ],
          "format": "date-time"
        }
      },
      "x-lendmail-status": "new",
      "x-lendmail-maps-from": "BotAnalysis.laMark (in /bot since Nov 20; not exposed over MCP today)"
    },
    "guidance": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "option",
        "rationale",
        "steps"
      ],
      "properties": {
        "option": {
          "enum": [
            "competitive_accept",
            "better_alternatives",
            "decline",
            "clarify_first"
          ]
        },
        "rationale": {
          "type": "string",
          "maxLength": 400
        },
        "steps": {
          "type": "array",
          "minItems": 1,
          "maxItems": 5,
          "items": {
            "type": "string",
            "maxLength": 240
          }
        }
      },
      "x-lendmail-status": "new",
      "x-lendmail-maps-from": "partly bottom_line / commentary + worth_your_time"
    },
    "summary": {
      "type": "string",
      "maxLength": 600,
      "description": "2-3 sentences, safe to quote verbatim: facts from the piece, no personal details, no approval or rate promises.",
      "x-lendmail-status": "existing",
      "x-lendmail-maps-from": "analysis.summary (offerSummary)"
    },
    "commentary": {
      "type": [
        "string",
        "null"
      ],
      "description": "LendMail's honest take (bottom line).",
      "x-lendmail-status": "existing",
      "x-lendmail-maps-from": "analysis.commentary (bottomLine)"
    },
    "confidence": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "overall",
        "image_quality"
      ],
      "properties": {
        "overall": {
          "$ref": "#/$defs/confidence"
        },
        "image_quality": {
          "enum": [
            "good",
            "fair",
            "poor"
          ]
        },
        "notes": {
          "type": [
            "string",
            "null"
          ]
        }
      },
      "x-lendmail-status": "new"
    },
    "partner_offer": {
      "type": [
        "object",
        "null"
      ],
      "additionalProperties": false,
      "required": [
        "affiliate_url",
        "disclosure"
      ],
      "properties": {
        "affiliate_url": {
          "type": "string"
        },
        "disclosure": {
          "type": "string"
        }
      },
      "description": "Optional clearly disclosed partner comparison link. Null when la_mark.status is verified (matches /bot) or for not_offer / unreadable.",
      "x-lendmail-status": "existing",
      "x-lendmail-maps-from": "affiliate_url + disclosure"
    },
    "disclosures": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "id",
          "text"
        ],
        "properties": {
          "id": {
            "enum": [
              "la_reviewed",
              "la_mark_not_endorsement",
              "la_sample",
              "la_unverified",
              "common_ownership",
              "operator",
              "not_a_lender",
              "general_info",
              "affiliate"
            ]
          },
          "text": {
            "type": "string"
          }
        }
      },
      "description": "Lines a calling assistant should show with the analysis.",
      "x-lendmail-status": "changed",
      "x-lendmail-maps-from": "disclosure (single affiliate string today)"
    },
    "data_handling": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "photo_stored",
        "personal_details_removed",
        "retention_months",
        "excluded_from_storage",
        "retention_policy"
      ],
      "properties": {
        "photo_stored": {
          "const": false
        },
        "personal_details_removed": {
          "type": "boolean"
        },
        "retention_months": {
          "const": 12
        },
        "excluded_from_storage": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "retention_policy": {
          "type": "string"
        }
      },
      "x-lendmail-status": "new"
    }
  },
  "allOf": [
    {
      "description": "Always disclose common ownership and the operator.",
      "properties": {
        "disclosures": {
          "allOf": [
            {
              "contains": {
                "properties": {
                  "id": {
                    "const": "common_ownership"
                  },
                  "text": {
                    "const": "LendMail Advisors and OfferLens share common ownership."
                  }
                }
              }
            },
            {
              "contains": {
                "properties": {
                  "id": {
                    "const": "operator"
                  },
                  "text": {
                    "const": "Operated by OfferCrew LLC."
                  }
                }
              }
            }
          ]
        }
      }
    },
    {
      "description": "Verified LA mark: show the Reviewed line and the not-an-endorsement line, and no partner link.",
      "if": {
        "properties": {
          "la_mark": {
            "properties": {
              "status": {
                "const": "verified"
              }
            }
          }
        }
      },
      "then": {
        "properties": {
          "partner_offer": {
            "type": "null"
          },
          "score": {
            "type": "null"
          },
          "la_mark": {
            "required": [
              "lender",
              "sample",
              "review_summary",
              "checked_at"
            ],
            "properties": {
              "code": {
                "type": "string"
              }
            }
          },
          "disclosures": {
            "allOf": [
              {
                "contains": {
                  "properties": {
                    "id": {
                      "const": "la_reviewed"
                    },
                    "text": {
                      "pattern": "^Reviewed by LendMail Advisors"
                    }
                  }
                }
              },
              {
                "contains": {
                  "properties": {
                    "id": {
                      "const": "la_mark_not_endorsement"
                    },
                    "text": {
                      "pattern": "not an endorsement"
                    }
                  }
                }
              }
            ]
          }
        }
      }
    },
    {
      "description": "A complete analysis always carries guidance.",
      "if": {
        "properties": {
          "status": {
            "const": "complete"
          }
        }
      },
      "then": {
        "properties": {
          "guidance": {
            "type": "object"
          }
        }
      }
    },
    {
      "description": "Unquoted red flags are always low confidence.",
      "properties": {
        "red_flags": {
          "items": {
            "if": {
              "properties": {
                "basis": {
                  "const": "unquoted"
                }
              }
            },
            "then": {
              "properties": {
                "confidence": {
                  "const": "low"
                }
              }
            }
          }
        }
      }
    },
    {
      "description": "No mark: code must be null and present false.",
      "if": {
        "properties": {
          "la_mark": {
            "properties": {
              "status": {
                "const": "none"
              }
            }
          }
        }
      },
      "then": {
        "properties": {
          "la_mark": {
            "properties": {
              "present": {
                "const": false
              },
              "code": {
                "type": "null"
              }
            }
          }
        }
      }
    },
    {
      "description": "Unverified mark needs a reason.",
      "if": {
        "properties": {
          "la_mark": {
            "properties": {
              "status": {
                "const": "unverified"
              }
            }
          }
        }
      },
      "then": {
        "properties": {
          "la_mark": {
            "required": [
              "unverified_reason"
            ],
            "properties": {
              "present": {
                "const": true
              },
              "unverified_reason": {
                "type": "string"
              }
            }
          }
        }
      }
    },
    {
      "description": "Quoted red flags need a quote.",
      "properties": {
        "red_flags": {
          "items": {
            "if": {
              "properties": {
                "basis": {
                  "const": "quoted_clause"
                }
              }
            },
            "then": {
              "properties": {
                "quote": {
                  "type": "string",
                  "minLength": 3
                }
              }
            }
          }
        }
      }
    }
  ],
  "$defs": {
    "confidence": {
      "enum": [
        "high",
        "medium",
        "low"
      ],
      "description": "high = printed clearly and read unambiguously; medium = printed but partly obscured or needed interpretation; low = inferred, unquoted or barely legible. When value is null (the fact is not printed on the letter), confidence says how sure the reader is that it is absent: high on a clear photo, medium on a fair one, low on a poor one. It is never a claim about the fact itself."
    },
    "source": {
      "type": "object",
      "additionalProperties": false,
      "required": [
        "type",
        "url",
        "checked_at"
      ],
      "properties": {
        "type": {
          "enum": [
            "letter",
            "lender_site",
            "lendmail_dataset"
          ]
        },
        "provider": {
          "enum": [
            "lendmail",
            "lendmail_advisors",
            "offerlens",
            null
          ],
          "description": "Who gathered a non-letter fact. offerlens = OfferLens data (shares common ownership with LendMail Advisors; the common_ownership disclosure is always present)."
        },
        "url": {
          "type": [
            "string",
            "null"
          ],
          "description": "Lender page or LendMail page the fact came from; null for 'letter'."
        },
        "checked_at": {
          "type": "string",
          "format": "date-time"
        },
        "quote": {
          "type": [
            "string",
            "null"
          ],
          "maxLength": 400,
          "description": "Optional supporting text as printed (personal details redacted)."
        }
      }
    }
  }
}