Zum Inhalt
HALOWERK

Datenvertragswerk

cbor shareable array graph audit

Reconstruct the complete array-identity graph and pre-order shareable slots from supplied normalized CBOR tag28/tag29 array events, including aliases to a currently open array. Single item;arrays only;open-array shared flag denotes tag28 immediately wrapping that array;ref denotes tag29 unsigned slot. No maps,other values,tags296/stringref,binary decoding,canonical byte-layout or fullCBOR conformance. Fresh table per invocation. Max8arrays,4shareables,depth4,24events. One missing index is.

POST https://datenvertrag.halowerk.com/v1/cbor-shareable-array-graph-audit

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
eventsarrayJa
claimSiehe SchemaJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "additionalProperties": false,
  "required": [
    "events",
    "claim"
  ],
  "properties": {
    "events": {
      "type": "array",
      "minItems": 2,
      "maxItems": 24,
      "items": {
        "oneOf": [
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "op",
              "shared"
            ],
            "properties": {
              "op": {
                "const": "open"
              },
              "shared": {
                "type": "boolean"
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "op",
              "index"
            ],
            "properties": {
              "op": {
                "const": "ref"
              },
              "index": {
                "anyOf": [
                  {
                    "type": "integer",
                    "minimum": 0,
                    "maximum": 3
                  },
                  {
                    "type": "null"
                  }
                ]
              }
            }
          },
          {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "op"
            ],
            "properties": {
              "op": {
                "const": "close"
              }
            }
          }
        ]
      }
    },
    "claim": {
      "anyOf": [
        {
          "type": "object",
          "additionalProperties": false,
          "required": [
            "nodes",
            "shared"
          ],
          "properties": {
            "nodes": {
              "type": "array",
              "minItems": 1,
              "maxItems": 8,
              "items": {
                "type": "array",
                "maxItems": 23,
                "items": {
                  "type": "integer",
                  "minimum": 0,
                  "maximum": 7
                }
              }
            },
            "shared": {
              "type": "array",
              "maxItems": 4,
              "items": {
                "type": "integer",
                "minimum": 0,
                "maximum": 7
              }
            }
          }
        },
        {
          "type": "null"
        }
      ]
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "events": [
    {
      "op": "open",
      "shared": true
    },
    {
      "op": "open",
      "shared": true
    },
    {
      "op": "close"
    },
    {
      "op": "open",
      "shared": false
    },
    {
      "op": "close"
    },
    {
      "op": "ref",
      "index": 0
    },
    {
      "op": "ref",
      "index": 0
    },
    {
      "op": "close"
    }
  ],
  "claim": {
    "nodes": [
      [
        1,
        2,
        0,
        0
      ],
      [],
      []
    ],
    "shared": [
      0,
      1
    ]
  }
}

Ergebnis & Dokumentation

Maschinenlesbare Dokumentation dieses Hubs

Quelle dieser Seite: der veröffentlichte HALOWERK-Katalog. Stand: 2026-11-07, 02:42 UTC.

Weitere Endpunkte dieses Hubs

Alle Endpunkte dieses Hubs →