{
  "provenance": "Eigene synthetische JSON-Eingaben für die reine Codefunktion, keine n8n-Laufzeit.",
  "cases": [
    {
      "id": "korrekt",
      "json": {
        "statusCode": 200,
        "body": {
          "accepted": true,
          "item_id": "ART-42"
        }
      },
      "expected": "vertrag_erfuellt"
    },
    {
      "id": "anmeldung_abgelehnt",
      "json": {
        "statusCode": 401,
        "body": {
          "error": "Nicht angemeldet"
        }
      },
      "expected": "http_abweichung"
    },
    {
      "id": "falsche_id",
      "json": {
        "statusCode": 200,
        "body": {
          "accepted": true,
          "item_id": "ART-99"
        }
      },
      "expected": "antwort_abweichung"
    },
    {
      "id": "nicht_angenommen",
      "json": {
        "statusCode": 202,
        "body": {
          "accepted": false,
          "item_id": "ART-42"
        }
      },
      "expected": "antwort_abweichung"
    },
    {
      "id": "text_statt_boolean",
      "json": {
        "statusCode": 200,
        "body": {
          "accepted": "true",
          "item_id": "ART-42"
        }
      },
      "expected": "antwort_abweichung"
    },
    {
      "id": "status_nicht_enthalten",
      "json": {
        "accepted": true,
        "item_id": "ART-42"
      },
      "expected": "status_fehlt"
    },
    {
      "id": "body_null",
      "json": {
        "statusCode": 200,
        "body": null
      },
      "expected": "antwort_abweichung"
    },
    {
      "id": "status_als_text",
      "json": {
        "statusCode": "200",
        "body": {
          "accepted": true,
          "item_id": "ART-42"
        }
      },
      "expected": "status_fehlt"
    }
  ]
}
