{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/instana/json-schema/instana-geo-location-configuration-schema.json",
  "title": "GeoLocationConfiguration",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/instana-mobile-app-configuration-api-openapi.yml#/components/schemas/GeoLocationConfiguration",
  "type": "object",
  "properties": {
    "geoDetailRemoval": {
      "type": "string",
      "enum": [
        "NO_REMOVAL",
        "REMOVE_COORDINATES",
        "REMOVE_CITY",
        "REMOVE_ALL"
      ]
    },
    "geoMappingRules": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/GeoMappingRule"
      },
      "maxItems": 512,
      "minItems": 0
    }
  },
  "required": [
    "geoDetailRemoval"
  ],
  "$defs": {
    "GeoMappingRule": {
      "type": "object",
      "properties": {
        "accuracyRadius": {
          "type": "integer",
          "format": "int64",
          "minimum": -1
        },
        "cidr": {
          "type": "string",
          "maxLength": 128,
          "minLength": 0
        },
        "city": {
          "type": "string"
        },
        "continent": {
          "type": "string"
        },
        "continentCode": {
          "type": "string"
        },
        "country": {
          "type": "string"
        },
        "countryCode": {
          "type": "string"
        },
        "latitude": {
          "type": "number",
          "format": "double"
        },
        "leastSpecificSubdivision": {
          "$ref": "#/$defs/GeoSubdivision"
        },
        "longitude": {
          "type": "number",
          "format": "double"
        },
        "subdivisions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/GeoSubdivision"
          },
          "maxItems": 8,
          "minItems": 0
        }
      },
      "required": [
        "cidr",
        "subdivisions"
      ]
    },
    "GeoSubdivision": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "maxLength": 32,
          "minLength": 0
        },
        "name": {
          "type": "string",
          "maxLength": 256,
          "minLength": 0
        }
      },
      "required": [
        "name"
      ]
    }
  }
}