{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/precisely-apis/main/json-schema/precisely-apis-flood-risk-by-location-request-schema.json",
  "title": "FloodRiskByLocationRequest",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/precisely-apis-flood-api-openapi.yml#/components/schemas/FloodRiskByLocationRequest",
  "properties": {
    "locations": {
      "items": {
        "$ref": "#/$defs/RiskLocations"
      },
      "type": "array"
    },
    "preferences": {
      "$ref": "#/$defs/FloodRiskPreferences"
    }
  },
  "required": [
    "locations"
  ],
  "type": "object",
  "$defs": {
    "FloodRiskPreferences": {
      "properties": {
        "includeGeometry": {
          "type": "string"
        },
        "includeZoneDesc": {
          "type": "string"
        },
        "richterValue": {
          "type": "string"
        }
      },
      "type": "object"
    },
    "RiskGeometry": {
      "properties": {
        "type": {
          "type": "string"
        },
        "coordinates": {
          "items": {
            "format": "double",
            "type": "number"
          },
          "type": "array"
        }
      },
      "required": [
        "type"
      ],
      "type": "object"
    },
    "RiskLocations": {
      "properties": {
        "geometry": {
          "$ref": "#/$defs/RiskGeometry"
        },
        "purchaseAmount": {
          "type": "string"
        },
        "objectId": {
          "type": "string"
        }
      },
      "required": [
        "geometry"
      ],
      "type": "object"
    }
  }
}