{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agonna-com/json-schema/agonna-com-outcome-allocation-create-schema.json",
  "title": "OutcomeAllocationCreate",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/agonna-com-outcomes-api-openapi.yml#/components/schemas/OutcomeAllocationCreate",
  "properties": {
    "agent_id": {
      "type": "string",
      "title": "Agent Id"
    },
    "principal_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Principal Id"
    },
    "allocation_type": {
      "type": "string",
      "enum": [
        "credit",
        "share",
        "payment",
        "ownership"
      ],
      "title": "Allocation Type",
      "default": "credit"
    },
    "amount": {
      "type": "number",
      "title": "Amount",
      "default": 0.0
    },
    "unit": {
      "type": "string",
      "title": "Unit",
      "default": "credit"
    },
    "rationale": {
      "type": "string",
      "title": "Rationale",
      "default": ""
    },
    "metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Metadata"
    }
  },
  "type": "object",
  "required": [
    "agent_id"
  ]
}