{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/lendb-ai/json-schema/lendb-ai-parsed-situation-schema.json",
  "title": "ParsedSituation",
  "x-generated": "2026-11-15",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/lendb-ai-openapi.yml#/components/schemas/ParsedSituation",
  "type": "object",
  "properties": {
    "specialties": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "state": {
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "language": {
      "type": [
        "string",
        "null"
      ]
    },
    "unmatched_terms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "zip": {
      "type": [
        "string",
        "null"
      ]
    },
    "local": {
      "type": "boolean",
      "description": "The query asked for someone nearby (local, nearby, near me)."
    },
    "near_me": {
      "type": "boolean"
    },
    "lender_type": {
      "type": [
        "string",
        "null"
      ],
      "enum": [
        "bank",
        "credit_union",
        "imb",
        "broker",
        "other",
        null
      ]
    },
    "region": {
      "type": [
        "string",
        "null"
      ]
    },
    "place_terms": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "nmls_id": {
      "type": [
        "integer",
        "null"
      ],
      "description": "An NMLS ID read from the query."
    },
    "person_name": {
      "type": [
        "string",
        "null"
      ],
      "description": "2 to 4 name-like words and nothing else recognized: looked up as a loan officer's name before places."
    },
    "location": {
      "type": [
        "object",
        "null"
      ],
      "description": "The resolved search origin (Census ZIP or place centroid).",
      "properties": {
        "label": {
          "type": "string"
        },
        "kind": {
          "type": "string",
          "enum": [
            "zip",
            "place",
            "county",
            "region",
            "coords"
          ]
        },
        "lat": {
          "type": "number"
        },
        "lng": {
          "type": "number"
        },
        "state": {
          "type": [
            "string",
            "null"
          ]
        },
        "zip": {
          "type": [
            "string",
            "null"
          ]
        },
        "radius_mi": {
          "type": "number"
        }
      }
    }
  }
}