{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-attachment-impact-response-schema.json",
  "title": "AttachmentImpactResponse",
  "description": "Response for estimating the impact of a policy attachment.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-policy-engine-api-openapi.yml#/components/schemas/AttachmentImpactResponse",
  "properties": {
    "affected_keys_count": {
      "default": 0,
      "description": "Number of keys that would be affected (named + unnamed).",
      "title": "Affected Keys Count",
      "type": "integer"
    },
    "affected_teams_count": {
      "default": 0,
      "description": "Number of teams that would be affected (named + unnamed).",
      "title": "Affected Teams Count",
      "type": "integer"
    },
    "sample_keys": {
      "description": "Sample of affected key aliases (up to 10).",
      "items": {
        "type": "string"
      },
      "title": "Sample Keys",
      "type": "array"
    },
    "sample_teams": {
      "description": "Sample of affected team aliases (up to 10).",
      "items": {
        "type": "string"
      },
      "title": "Sample Teams",
      "type": "array"
    },
    "unnamed_keys_count": {
      "default": 0,
      "description": "Number of affected keys without an alias.",
      "title": "Unnamed Keys Count",
      "type": "integer"
    },
    "unnamed_teams_count": {
      "default": 0,
      "description": "Number of affected teams without an alias.",
      "title": "Unnamed Teams Count",
      "type": "integer"
    }
  },
  "type": "object"
}