{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/rms/json-schema/rms-location-to-detail-schema.json",
  "title": "LocationToDetail",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/rms-openapi.yml#/components/schemas/LocationToDetail",
  "type": "object",
  "properties": {
    "id": {
      "type": "integer",
      "format": "int32"
    },
    "siteLimit": {
      "type": "number",
      "format": "double"
    },
    "siteDeduct": {
      "type": "number",
      "format": "double"
    },
    "combinedLimit": {
      "type": "number",
      "format": "double"
    },
    "combinedDeduct": {
      "type": "number",
      "format": "double"
    },
    "yearUpgrade": {
      "type": "string"
    },
    "percentComplete": {
      "type": "number",
      "format": "double"
    },
    "fireClass": {
      "type": "string"
    },
    "rmsClass": {
      "type": "string"
    },
    "userClass": {
      "type": "string"
    },
    "atcOccupancy": {
      "type": "string"
    },
    "isoOccupancy": {
      "type": "string"
    },
    "userOccupancy": {
      "type": "string"
    },
    "percentageSiteLossDeductibleAmount": {
      "type": "number",
      "format": "double"
    },
    "percentageCombinedLossDeductibleAmount": {
      "type": "number",
      "format": "double"
    },
    "isFranchiseSiteDeductible": {
      "$ref": "#/$defs/ExposureValue"
    },
    "isFranchiseCombinedDeductible": {
      "$ref": "#/$defs/ExposureValue"
    },
    "isValid": {
      "type": "boolean"
    },
    "architecture": {
      "$ref": "#/$defs/ExposureValue"
    },
    "cladRate": {
      "$ref": "#/$defs/ExposureValue"
    },
    "cladType": {
      "$ref": "#/$defs/ExposureValue"
    },
    "constructQuality": {
      "$ref": "#/$defs/ExposureValue"
    },
    "designCode": {
      "$ref": "#/$defs/ExposureValue"
    },
    "doorOpenings": {
      "$ref": "#/$defs/ExposureValue"
    },
    "externalOrnament": {
      "$ref": "#/$defs/ExposureValue"
    },
    "floodVulnerability": {
      "$ref": "#/$defs/ExposureValue"
    },
    "foundation": {
      "$ref": "#/$defs/ExposureValue"
    },
    "maintenance": {
      "$ref": "#/$defs/ExposureValue"
    },
    "mechElecSide": {
      "$ref": "#/$defs/ExposureValue"
    },
    "otherOpenings": {
      "$ref": "#/$defs/ExposureValue"
    },
    "roofAge": {
      "$ref": "#/$defs/ExposureValue"
    },
    "roofAnchor": {
      "$ref": "#/$defs/ExposureValue"
    },
    "roofEquipment": {
      "$ref": "#/$defs/ExposureValue"
    },
    "roofFrame": {
      "$ref": "#/$defs/ExposureValue"
    },
    "roofGeometry": {
      "$ref": "#/$defs/ExposureValue"
    },
    "roofParpet": {
      "$ref": "#/$defs/ExposureValue"
    },
    "roofSystem": {
      "$ref": "#/$defs/ExposureValue"
    },
    "windMissile": {
      "$ref": "#/$defs/ExposureValue"
    },
    "windVulnerability": {
      "$ref": "#/$defs/ExposureValue"
    },
    "basement": {
      "$ref": "#/$defs/ExposureValue"
    },
    "mechElecGround": {
      "$ref": "#/$defs/ExposureValue"
    },
    "floodMissiles": {
      "$ref": "#/$defs/ExposureValue"
    },
    "floodProtection": {
      "$ref": "#/$defs/ExposureValue"
    },
    "iceDamProtection": {
      "$ref": "#/$defs/ExposureValue"
    },
    "plumbingInsulation": {
      "$ref": "#/$defs/ExposureValue"
    },
    "atticInsulation": {
      "$ref": "#/$defs/ExposureValue"
    },
    "roofVentilation": {
      "$ref": "#/$defs/ExposureValue"
    },
    "snowGuards": {
      "$ref": "#/$defs/ExposureValue"
    },
    "treeDensity": {
      "$ref": "#/$defs/ExposureValue"
    },
    "garaging": {
      "$ref": "#/$defs/ExposureValue"
    },
    "toPackage": {
      "$ref": "#/$defs/ExposureValue"
    },
    "toProtect": {
      "$ref": "#/$defs/ExposureValue"
    },
    "toSalvage": {
      "$ref": "#/$defs/ExposureValue"
    },
    "toSpecieStorage": {
      "$ref": "#/$defs/ExposureValue"
    },
    "operationType": {
      "type": "string",
      "readOnly": true,
      "enum": [
        "INSERT",
        "UPDATE",
        "DELETE"
      ]
    },
    "dominantSubperilCS": {
      "type": "integer",
      "format": "int64"
    },
    "percentInGeographyCS": {
      "type": "number",
      "format": "double"
    },
    "score1CS": {
      "type": "integer",
      "format": "int32"
    },
    "score2CS": {
      "type": "integer",
      "format": "int32"
    },
    "score3CS": {
      "type": "integer",
      "format": "int32"
    },
    "scoreOverallCS": {
      "type": "integer",
      "format": "int32"
    },
    "dominantSubperilWT": {
      "type": "integer",
      "format": "int64"
    },
    "percentInGeographyWT": {
      "type": "number",
      "format": "double"
    },
    "score1WT": {
      "type": "integer",
      "format": "int32"
    },
    "score2WT": {
      "type": "integer",
      "format": "int32"
    },
    "score3WT": {
      "type": "integer",
      "format": "int32"
    },
    "scoreOverallWT": {
      "type": "integer",
      "format": "int32"
    }
  },
  "$defs": {
    "ExposureValue": {
      "type": "object",
      "properties": {
        "id": {
          "type": "integer",
          "format": "int32"
        },
        "code": {
          "type": "string"
        },
        "name": {
          "type": "string"
        }
      }
    }
  }
}