Zum Inhalt
HALOWERK

Technische Prüfungen & Formate

cms / cms grapheme offset contract

An agent that transfers rich-text selections between runtimes needs supplied grapheme indices reconciled with UTF-16 boundaries.

POST https://detect.halowerk.com/v1/cms/cms-grapheme-offset-contract

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
artifactobjectJa
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "properties": {
    "artifact": {
      "type": "object",
      "properties": {
        "text": {
          "type": "string",
          "minLength": 0,
          "maxLength": 16000
        },
        "selections": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "start_grapheme": {
                "type": "integer",
                "minimum": 0,
                "maximum": 16000
              },
              "end_grapheme": {
                "type": "integer",
                "minimum": 0,
                "maximum": 16000
              },
              "start_utf16": {
                "type": "integer",
                "minimum": 0,
                "maximum": 16000
              },
              "end_utf16": {
                "type": "integer",
                "minimum": 0,
                "maximum": 16000
              }
            },
            "required": [
              "start_grapheme",
              "end_grapheme",
              "start_utf16",
              "end_utf16"
            ],
            "additionalProperties": false
          },
          "maxItems": 512,
          "minItems": 0
        }
      },
      "required": [
        "text",
        "selections"
      ],
      "additionalProperties": false
    }
  },
  "required": [
    "artifact"
  ],
  "additionalProperties": false
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "artifact": {
    "text": "a",
    "selections": [
      {
        "start_grapheme": 0,
        "end_grapheme": 1,
        "start_utf16": 0,
        "end_utf16": 1
      }
    ]
  }
}

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 →