{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peppolstatus-com/json-schema/peppolstatus-com-id-quality-hosting-schema.json",
  "title": "IdQualityHosting",
  "description": "AP/SMP hosting rollup for the filtered malformed identifier set.",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peppolstatus-com-id-quality-api-openapi.yml#/components/schemas/IdQualityHosting",
  "type": "object",
  "required": [
    "access_points",
    "smps",
    "totals",
    "generated_at"
  ],
  "properties": {
    "access_points": {
      "type": "array",
      "description": "Serving AP seats, ranked by malformed-id count, top 200.",
      "items": {
        "type": "object",
        "required": [
          "seat_id",
          "provider",
          "slug",
          "count"
        ],
        "properties": {
          "seat_id": {
            "type": [
              "string",
              "null"
            ],
            "description": "Representative serving AP seat id."
          },
          "provider": {
            "type": "string",
            "description": "Provider display name (or seat id)."
          },
          "slug": {
            "type": [
              "string",
              "null"
            ],
            "description": "Provider slug for linking, or null."
          },
          "count": {
            "type": "integer"
          }
        }
      }
    },
    "smps": {
      "type": "array",
      "description": "Serving SMP hostnames, ranked by malformed-id count, top 200.",
      "items": {
        "type": "object",
        "required": [
          "smp",
          "count"
        ],
        "properties": {
          "smp": {
            "type": "string"
          },
          "count": {
            "type": "integer"
          }
        }
      }
    },
    "totals": {
      "type": "object",
      "required": [
        "malformed",
        "with_access_point",
        "with_smp"
      ],
      "properties": {
        "malformed": {
          "type": "integer"
        },
        "with_access_point": {
          "type": "integer"
        },
        "with_smp": {
          "type": "integer"
        }
      }
    },
    "generated_at": {
      "type": "string",
      "format": "date-time"
    }
  }
}