Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

api / api json patch atomic correspondence

An agent that checks a CMS or API migration handover needs its claimed JSON Patch transaction result checked across atomic add, remove, replace, move, copy and test operations with escaped JSON pointers.

POST https://detect.halowerk.com/v1/api/api-json-patch-atomic-correspondence

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "artifact": {
      "type": "object",
      "properties": {
        "document": {},
        "operations": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "op": {
                "type": "string",
                "enum": [
                  "add",
                  "remove",
                  "replace",
                  "move",
                  "copy",
                  "test"
                ],
                "minLength": 1,
                "maxLength": 64
              },
              "path": {
                "type": "string",
                "minLength": 0,
                "maxLength": 256
              },
              "from": {
                "type": "string",
                "minLength": 0,
                "maxLength": 256
              },
              "value": {}
            },
            "required": [
              "op",
              "path",
              "from",
              "value"
            ],
            "additionalProperties": false
          },
          "minItems": 0,
          "maxItems": 256
        },
        "claimed_applied": {
          "type": "boolean"
        },
        "claimed_result": {}
      },
      "required": [
        "document",
        "operations",
        "claimed_applied",
        "claimed_result"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "artifact"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "artifact": {
    "document": {
      "a": [
        0,
        0,
        2,
        1,
        0
      ],
      "b": 3
    },
    "operations": [
      {
        "op": "copy",
        "path": "/a/3",
        "from": "/a/4",
        "value": 1
      },
      {
        "op": "move",
        "path": "/a/4",
        "from": "/a/0",
        "value": 0
      },
      {
        "op": "copy",
        "path": "/a/7",
        "from": "/a/1",
        "value": 0
      },
      {
        "op": "test",
        "path": "/a/3",
        "from": "/a/0",
        "value": 3
      },
      {
        "op": "copy",
        "path": "/a/5",
        "from": "/a/6",
        "value": 0
      },
      {
        "op": "copy",
        "path": "/a/2",
        "from": "/a/5",
        "value": 4
      },
      {
        "op": "replace",
        "path": "/a/4",
        "from": "/a/6",
        "value": 3
      },
      {
        "op": "test",
        "path": "/a/4",
        "from": "/a/3",
        "value": 2
      }
    ],
    "claimed_applied": false,
    "claimed_result": {
      "a": [
        0,
        0,
        2,
        1,
        0
      ],
      "b": 3
    }
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-01, 15:19 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →