{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/gntai-dev/json-schema/gntai-dev-create-rule-request-schema.json",
  "title": "CreateRuleRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/gntai-dev-openapi.yml#/components/schemas/CreateRuleRequest",
  "properties": {
    "title": {
      "type": "string",
      "maxLength": 200,
      "minLength": 1,
      "title": "Title"
    },
    "body": {
      "type": "string",
      "maxLength": 8000,
      "minLength": 1,
      "title": "Body"
    },
    "confidence": {
      "type": "number",
      "maximum": 1.0,
      "minimum": 0.0,
      "title": "Confidence",
      "default": 0.7
    },
    "source_citations": {
      "items": {
        "additionalProperties": true,
        "type": "object"
      },
      "type": "array",
      "title": "Source Citations"
    },
    "source": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 2000
        },
        {
          "type": "null"
        }
      ],
      "title": "Source"
    },
    "tags": {
      "items": {
        "type": "string"
      },
      "type": "array",
      "maxItems": 20,
      "title": "Tags"
    }
  },
  "type": "object",
  "required": [
    "title",
    "body"
  ]
}