{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/agonna-com/json-schema/agonna-com-outcome-allocation-read-schema.json",
  "title": "OutcomeAllocationRead",
  "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/OutcomeAllocationRead",
  "properties": {
    "id": {
      "type": "string",
      "title": "Id"
    },
    "outcome_id": {
      "type": "string",
      "title": "Outcome Id"
    },
    "agent_id": {
      "type": "string",
      "title": "Agent Id"
    },
    "principal_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Principal Id"
    },
    "allocation_type": {
      "type": "string",
      "title": "Allocation Type"
    },
    "amount": {
      "type": "number",
      "title": "Amount"
    },
    "unit": {
      "type": "string",
      "title": "Unit"
    },
    "rationale": {
      "type": "string",
      "title": "Rationale"
    },
    "allocation_metadata": {
      "additionalProperties": true,
      "type": "object",
      "title": "Allocation Metadata"
    },
    "created_at": {
      "type": "string",
      "format": "date-time",
      "title": "Created At"
    }
  },
  "type": "object",
  "required": [
    "id",
    "outcome_id",
    "agent_id",
    "principal_id",
    "allocation_type",
    "amount",
    "unit",
    "rationale",
    "allocation_metadata",
    "created_at"
  ]
}