{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/proxmint/json-schema/proxmint-geo-ip-schema.json",
  "title": "GeoIp",
  "x-generated": "2026-11-26",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/proxmint-openapi.json#/components/schemas/GeoIp",
  "type": "object",
  "properties": {
    "ip": {
      "type": "string"
    },
    "countryCode": {
      "type": [
        "string",
        "null"
      ],
      "description": "ISO 3166-1 alpha-2, lowercase."
    },
    "countryName": {
      "type": [
        "string",
        "null"
      ]
    },
    "city": {
      "type": [
        "string",
        "null"
      ]
    },
    "region": {
      "type": [
        "string",
        "null"
      ],
      "description": "First subdivision — English name, else ISO code."
    },
    "lat": {
      "type": [
        "number",
        "null"
      ]
    },
    "lon": {
      "type": [
        "number",
        "null"
      ]
    },
    "tz": {
      "type": [
        "string",
        "null"
      ],
      "description": "IANA timezone, e.g. America/New_York."
    },
    "accuracyRadiusKm": {
      "type": [
        "integer",
        "null"
      ],
      "description": "Radius around lat/lon, in km."
    },
    "asn": {
      "type": [
        "integer",
        "null"
      ]
    },
    "asnOrg": {
      "type": [
        "string",
        "null"
      ]
    }
  },
  "required": [
    "ip"
  ]
}