{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/tno/json-schema/tno-post-result-schema.json",
  "title": "PostResult",
  "x-generated": "2026-11-24",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/tno-knowledge-engine-smart-connector-openapi.yml#/components/schemas/PostResult",
  "type": "object",
  "required": [
    "resultBindingSet",
    "exchangeInfo"
  ],
  "properties": {
    "resultBindingSet": {
      "$ref": "#/$defs/BindingSet"
    },
    "exchangeInfo": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/ExchangeInfo"
      }
    }
  },
  "$defs": {
    "BindingSet": {
      "type": "array",
      "items": {
        "type": [
          "object",
          "null"
        ],
        "additionalProperties": {
          "type": "string"
        }
      }
    },
    "ExchangeInfo": {
      "type": "object",
      "required": [
        "knowledgeInteractionType",
        "initiator",
        "knowledgeBaseId",
        "knowledgeInteractionId",
        "exchangeStart",
        "exchangeEnd",
        "status"
      ],
      "properties": {
        "initiator": {
          "type": "string",
          "enum": [
            "knowledgeBase",
            "reasoner"
          ]
        },
        "knowledgeBaseId": {
          "type": "string"
        },
        "knowledgeInteractionId": {
          "type": "string"
        },
        "exchangeStart": {
          "type": "string",
          "format": "date-time"
        },
        "exchangeEnd": {
          "type": "string",
          "format": "date-time"
        },
        "status": {
          "type": "string"
        },
        "failedMessage": {
          "type": "string"
        }
      }
    }
  }
}