{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/peregrini-ai/json-schema/peregrini-ai-rule-schema.json",
  "title": "Rule",
  "description": "A rule relied on: a string in the party's words, or {proposition, citations[]}; normalised to the object",
  "x-generated": "2026-11-21",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/peregrini-ai-lodge-api-openapi.yml#/components/schemas/Rule",
  "oneOf": [
    {
      "type": "string"
    },
    {
      "type": "object",
      "required": [
        "proposition"
      ],
      "properties": {
        "proposition": {
          "type": "string"
        },
        "citations": {
          "type": "array",
          "items": {
            "type": "string"
          }
        }
      }
    }
  ]
}