{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/grafomem-com/json-schema/grafomem-com-policy-list-response-schema.json",
  "title": "PolicyListResponse",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/grafomem-com-governance-gateway-api-openapi.yml#/components/schemas/PolicyListResponse",
  "properties": {
    "policies": {
      "items": {
        "$ref": "#/$defs/PolicyResponse"
      },
      "type": "array",
      "title": "Policies",
      "default": []
    },
    "count": {
      "type": "integer",
      "title": "Count",
      "default": 0
    }
  },
  "type": "object",
  "$defs": {
    "PolicyResponse": {
      "properties": {
        "policy_id": {
          "type": "string",
          "title": "Policy Id"
        },
        "name": {
          "type": "string",
          "title": "Name"
        },
        "description": {
          "type": "string",
          "title": "Description",
          "default": ""
        },
        "policy_type": {
          "type": "string",
          "title": "Policy Type"
        },
        "action": {
          "type": "string",
          "title": "Action"
        },
        "config": {
          "additionalProperties": true,
          "type": "object",
          "title": "Config",
          "default": {}
        },
        "priority": {
          "type": "integer",
          "title": "Priority",
          "default": 0
        },
        "enabled": {
          "type": "boolean",
          "title": "Enabled",
          "default": true
        },
        "created_at": {
          "anyOf": [
            {
              "type": "string"
            },
            {
              "type": "null"
            }
          ],
          "title": "Created At"
        }
      },
      "type": "object",
      "required": [
        "policy_id",
        "name",
        "policy_type",
        "action"
      ],
      "title": "PolicyResponse"
    }
  }
}