{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/bookmyhost/json-schema/bookmyhost-policy-info-response-schema.json",
  "title": "PolicyInfoResponse",
  "description": "Response for /policy/info/{policy_name} endpoint.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/bookmyhost-policies-api-openapi.yml#/components/schemas/PolicyInfoResponse",
  "properties": {
    "guardrails": {
      "$ref": "#/$defs/PolicyGuardrailsResponse"
    },
    "inherit": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Inherit"
    },
    "inheritance_chain": {
      "items": {
        "type": "string"
      },
      "title": "Inheritance Chain",
      "type": "array"
    },
    "policy_name": {
      "title": "Policy Name",
      "type": "string"
    },
    "resolved_guardrails": {
      "items": {
        "type": "string"
      },
      "title": "Resolved Guardrails",
      "type": "array"
    },
    "scope": {
      "$ref": "#/$defs/PolicyScopeResponse"
    }
  },
  "required": [
    "policy_name",
    "scope",
    "guardrails",
    "resolved_guardrails",
    "inheritance_chain"
  ],
  "type": "object",
  "$defs": {
    "PolicyGuardrailsResponse": {
      "description": "Guardrails configuration for a policy.",
      "properties": {
        "add": {
          "items": {
            "type": "string"
          },
          "title": "Add",
          "type": "array"
        },
        "remove": {
          "items": {
            "type": "string"
          },
          "title": "Remove",
          "type": "array"
        }
      },
      "title": "PolicyGuardrailsResponse",
      "type": "object"
    },
    "PolicyScopeResponse": {
      "description": "Scope configuration for a policy.",
      "properties": {
        "keys": {
          "items": {
            "type": "string"
          },
          "title": "Keys",
          "type": "array"
        },
        "models": {
          "items": {
            "type": "string"
          },
          "title": "Models",
          "type": "array"
        },
        "tags": {
          "items": {
            "type": "string"
          },
          "title": "Tags",
          "type": "array"
        },
        "teams": {
          "items": {
            "type": "string"
          },
          "title": "Teams",
          "type": "array"
        }
      },
      "title": "PolicyScopeResponse",
      "type": "object"
    }
  }
}