{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/wordis-bond-com/json-schema/wordis-bond-com-outcome-assertion-input-schema.json",
  "title": "OutcomeAssertionInput",
  "description": "Register/patch an outcome assertion. `endpoint` must be a public https URL.",
  "x-generated": "2026-11-29",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/wordis-bond-com-openapi.json#/components/schemas/OutcomeAssertionInput",
  "type": "object",
  "properties": {
    "suiteId": {
      "type": "string",
      "format": "uuid",
      "description": "The suite this assertion is attached to (required on create)."
    },
    "scenarioName": {
      "type": [
        "string",
        "null"
      ],
      "description": "Only run for this scenario (persona name). Null = every scenario."
    },
    "name": {
      "type": "string"
    },
    "endpoint": {
      "type": "string",
      "format": "uri"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST"
      ]
    },
    "expected": {
      "type": "object",
      "description": "status + JSONPath equality/existence checks. Values may interpolate {{scenario.*}}.",
      "properties": {
        "status": {
          "type": "integer"
        },
        "json_path": {
          "type": "object",
          "additionalProperties": true
        }
      }
    },
    "priceCheck": {
      "type": [
        "object",
        "null"
      ],
      "description": "Compare the agent quote against a price list.",
      "properties": {
        "quoted_field": {
          "type": "string",
          "description": "JSONPath into the response for the recorded amount. Absent ⇒ extract from the transcript."
        },
        "source": {
          "type": "string"
        },
        "service_key": {
          "type": "string",
          "description": "Which list entry to expect. Default {{scenario.requested_service}}."
        },
        "tolerance": {
          "type": "number"
        }
      },
      "required": [
        "source"
      ]
    },
    "timeoutMs": {
      "type": "integer",
      "description": "Per-request timeout, capped at 10000."
    },
    "retries": {
      "type": "integer",
      "description": "Retry attempts on an unreachable/5xx call, capped at 3."
    },
    "enabled": {
      "type": "boolean"
    }
  }
}