{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-policy-match-context-schema.json",
  "title": "PolicyMatchContext",
  "description": "Context used to match a request against policies.\n\nContains the team alias, key alias, and model from the incoming request.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-policies-api-openapi.yml#/components/schemas/PolicyMatchContext",
  "additionalProperties": false,
  "properties": {
    "key_alias": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "API key alias from the request.",
      "title": "Key Alias"
    },
    "model": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Model name from the request.",
      "title": "Model"
    },
    "tags": {
      "anyOf": [
        {
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        {
          "type": "null"
        }
      ],
      "description": "Tags from key/team metadata.",
      "title": "Tags"
    },
    "team_alias": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "description": "Team alias from the request.",
      "title": "Team Alias"
    }
  },
  "type": "object"
}