{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/faxforagents/json-schema/faxforagents-policy-create-schema.json",
  "title": "PolicyCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/faxforagents-policies-api-openapi.yml#/components/schemas/PolicyCreate",
  "properties": {
    "name": {
      "type": "string",
      "maxLength": 120,
      "minLength": 1,
      "title": "Name"
    },
    "purpose": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 500
        },
        {
          "type": "null"
        }
      ],
      "title": "Purpose",
      "description": "Why this policy exists. Shown, never evaluated."
    },
    "rules": {
      "additionalProperties": true,
      "type": "object",
      "title": "Rules",
      "description": "See the PolicyRules schema in docs/APPROVALS.md."
    },
    "enabled": {
      "type": "boolean",
      "title": "Enabled",
      "default": true
    }
  },
  "additionalProperties": false,
  "type": "object",
  "required": [
    "name",
    "rules"
  ]
}