changedOutput schema / (root)
Previous value: -{
- "$schema": "http://json-schema.org/draft-07/schema#",
- "additionalProperties": false,
- "properties": {
- "metadata": {
- "additionalProperties": false,
- "properties": {
- "queryId": {
- "type": "string"
- },
- "sessionId": {
- "type": "string"
- },
- "timestamp": {
- "type": "string"
- }
- },
- "required": [
- "queryId",
- "timestamp"
- ],
- "type": "object"
- },
- "offers": {
- "items": {
- "additionalProperties": false,
- "properties": {
- "disclaimer": {
- "description": "A disclaimer message, e.g., if the offer is an estimate.",
- "type": "string"
- },
- "fees": {
- "additionalProperties": false,
- "description": "Any fees associated with the loan.",
- "properties": {
- "origination": {
- "additionalProperties": false,
- "description": "Fee charged by the lender for processing the loan.",
- "properties": {
- "amount": {
- "additionalProperties": false,
- "description": "The origination fee amount.",
- "properties": {
- "amount": {
- "type": "number"
- },
- "currency": {
- "const": "USD",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "percentage": {
- "description": "The origination fee as a percentage of the loan amount.",
- "type": "number"
- }
- },
- "required": [
- "amount"
- ],
- "type": "object"
- }
- },
- "type": "object"
- },
- "isEstimate": {
- "description": "Indicates if the offer terms are an estimate and not a firm quote.",
- "type": "boolean"
- },
- "isSecureLendTenant": {
- "description": "Indicates if the offer is from a SecureLend-managed tenant.",
- "type": "boolean"
- },
- "lender": {
- "additionalProperties": false,
- "description": "Details about the lender providing the offer.",
- "properties": {
- "id": {
- "description": "The unique identifier for the lender.",
- "type": "string"
- },
- "name": {
- "description": "The display name of the lender.",
- "type": "string"
- },
- "type": {
- "description": "The type of lending institution (e.g., 'Bank', 'Credit Union').",
- "type": "string"
- }
- },
- "required": [
- "id",
- "name",
- "type"
- ],
- "type": "object"
- },
- "matching": {
- "additionalProperties": false,
- "description": "Information about how the offer was matched.",
- "properties": {
- "matchReasons": {
- "description": "Reasons for the match score.",
- "items": {
- "type": "string"
- },
- "type": "array"
- },
- "matchScore": {
- "description": "A score indicating how well the offer matches the search criteria.",
- "type": "number"
- }
- },
- "type": "object"
- },
- "offerId": {
- "description": "A unique identifier for this specific loan offer.",
- "type": "string"
- },
- "process": {
- "additionalProperties": false,
- "description": "Details about the application and funding process.",
- "properties": {
- "applicationMethod": {
- "description": "How to apply for the loan.",
- "enum": [
- "online",
- "phone",
- "in_person"
- ],
- "type": "string"
- },
- "applicationUrl": {
- "description": "The URL to the online application form.",
- "format": "uri",
- "type": "string"
- },
- "fundingSpeed": {
- "additionalProperties": false,
- "description": "Information on how quickly the loan is funded.",
- "properties": {
- "description": {
- "description": "Estimated time to receive funds.",
- "type": "string"
- }
- },
- "required": [
- "description"
- ],
- "type": "object"
- }
- },
- "required": [
- "applicationMethod"
- ],
- "type": "object"
- },
- "product": {
- "additionalProperties": false,
- "description": "Details about the financial product.",
- "properties": {
- "description": {
- "description": "A brief description of the product.",
- "type": "string"
- },
- "name": {
- "description": "The name of the financial product being offered.",
- "type": "string"
- },
- "type": {
- "description": "The category of the financial product.",
- "enum": [
- "INSTALLMENT_LOAN",
- "LINE_OF_CREDIT",
- "SHORT_TERM_CREDIT",
- "BNPL",
- "MORTGAGE",
- "AUTO_LOAN",
- "AUTO_REFINANCE",
- "STUDENT_LOAN",
- "STUDENT_LOAN_REFINANCE",
- "BUSINESS_LOAN",
- "BUSINESS_BANKING",
- "BUSINESS_CREDIT_CARD",
- "PERSONAL_BANKING",
- "SAVINGS_ACCOUNT",
- "PERSONAL_CREDIT_CARD"
- ],
- "type": "string"
- }
- },
- "required": [
- "name",
- "type"
- ],
- "type": "object"
- },
- "terms": {
- "additionalProperties": false,
- "description": "The terms and conditions of the loan offer.",
- "properties": {
- "amount": {
- "additionalProperties": false,
- "description": "The principal loan amount.",
- "properties": {
- "amount": {
- "type": "number"
- },
- "currency": {
- "const": "USD",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "interestRate": {
- "additionalProperties": false,
- "description": "Details about the interest rate.",
- "properties": {
- "apr": {
- "description": "The Annual Percentage Rate, including fees.",
- "type": "number"
- },
- "rate": {
- "description": "The nominal interest rate.",
- "type": "number"
- },
- "type": {
- "description": "The type of interest rate.",
- "enum": [
- "fixed",
- "variable"
- ],
- "type": "string"
- }
- },
- "required": [
- "type",
- "rate",
- "apr"
- ],
- "type": "object"
- },
- "payment": {
- "additionalProperties": false,
- "description": "Details about the repayment schedule.",
- "properties": {
- "amount": {
- "additionalProperties": false,
- "description": "The amount of each payment.",
- "properties": {
- "amount": {
- "type": "number"
- },
- "currency": {
- "const": "USD",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- },
- "frequency": {
- "const": "monthly",
- "description": "The frequency of payments.",
- "type": "string"
- }
- },
- "required": [
- "frequency",
- "amount"
- ],
- "type": "object"
- },
- "prepaymentPenalty": {
- "description": "Indicates if there is a penalty for early repayment.",
- "type": "boolean"
- },
- "repayment": {
- "additionalProperties": false,
- "description": "Summary of repayment details.",
- "properties": {
- "costOfFinancing": {
- "description": "The total cost of borrowing (interest and fees).",
- "type": "number"
- },
- "totalRepaymentAmount": {
- "description": "The total amount to be repaid over the life of the loan.",
- "type": "number"
- }
- },
- "required": [
- "totalRepaymentAmount",
- "costOfFinancing"
- ],
- "type": "object"
- },
- "termMonths": {
- "description": "The duration of the loan in months.",
- "type": "number"
- },
- "totalCost": {
- "additionalProperties": false,
- "description": "The total cost of the loan, including interest and fees.",
- "properties": {
- "amount": {
- "type": "number"
- },
- "currency": {
- "const": "USD",
- "type": "string"
- }
- },
- "required": [
- "amount",
- "currency"
- ],
- "type": "object"
- }
- },
- "required": [
- "amount",
- "interestRate",
- "termMonths"
- ],
- "type": "object"
- }
- },
- "required": [
- "offerId",
- "lender",
- "product",
- "terms",
- "process",
- "isSecureLendTenant"
- ],
- "type": "object"
- },
- "type": "array"
- },
- "summary": {
- "additionalProperties": false,
- "properties": {
- "bestRate": {
- "type": "number"
- },
- "fastestFunding": {
- "type": "string"
- },
- "totalOffers": {
- "type": "number"
- }
- },
- "required": [
- "totalOffers",
- "bestRate",
- "fastestFunding"
- ],
- "type": "object"
- }
- },
- "required": [
- "offers",
- "summary",
- "metadata"
- ],
- "type": "object"
-}New value: +null