{ "$schema": "https://json-schema.org/draft/2020-12/schema", "title": "ITWorx MCP Hub Policy", "description": "Declarative policy rule.", "type": "object", "additionalProperties": false, "$id": "https://hub.example.com/schemas/policy.schema.json", "required": [ "apiVersion", "kind", "metadata", "spec" ], "properties": { "apiVersion": { "const": "hub.example.com/v1alpha1" }, "kind": { "const": "Policy" }, "metadata": { "$ref": "common.schema.json#/$defs/metadata" }, "spec": { "type": "object", "additionalProperties": false, "required": [ "priority", "description", "match", "conditions", "decision", "terminal" ], "properties": { "priority": { "type": "integer", "minimum": 0, "maximum": 100000 }, "description": { "type": "string", "minLength": 1, "maxLength": 1000 }, "match": { "type": "object" }, "conditions": { "type": "object" }, "decision": { "enum": [ "allow", "allow_if_conditions", "deny", "deny_and_alert", "enforce" ] }, "terminal": { "type": "boolean" } } } } }