{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cathedral-ai-com/json-schema/cathedral-ai-com-obligation-create-schema.json",
  "title": "ObligationCreate",
  "x-generated": "2026-11-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cathedral-ai-com-openapi.json#/components/schemas/ObligationCreate",
  "properties": {
    "statement": {
      "type": "string",
      "maxLength": 1000,
      "minLength": 10,
      "title": "Statement",
      "description": "Clear statement of what you are committing to."
    },
    "counterparty": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 200
        },
        {
          "type": "null"
        }
      ],
      "title": "Counterparty",
      "description": "Who this promise is made to (agent name, user, or any identifier)."
    },
    "deadline": {
      "anyOf": [
        {
          "type": "string",
          "maxLength": 50
        },
        {
          "type": "null"
        }
      ],
      "title": "Deadline",
      "description": "ISO 8601 deadline, e.g. '2026-07-01T00:00:00Z'. Optional."
    },
    "breach_penalty": {
      "type": "number",
      "maximum": 10.0,
      "minimum": 0.0,
      "title": "Breach Penalty",
      "description": "Points deducted from trust score if this obligation is resolved as failed (0-10).",
      "default": 0.0
    }
  },
  "type": "object",
  "required": [
    "statement"
  ]
}