Zum Inhalt
HALOWERK

Modellwerk

output validate

Validates output against a JSON Schema and reports each violation with its JSON path, the rule it broke and a sentence saying what to change. Accepts either a parsed object or the raw string a model returned: a payload wrapped in a code fence or surrounded by prose is unwrapped, and the wrapping is reported separately from schema errors so you fix the right layer. Draft 2020-12 and draft-07 are both supported, along with the common string formats.

POST https://modell.halowerk.com/v1/output-validate

Eingaben

Felder des veröffentlichten Eingabeschemas
FeldTypPflichtBeschreibung
outputSiehe SchemaNeinThe model answer, as a parsed JSON value. Either this or output_text.
output_textstringNeinThe raw answer as text. Code fences and surrounding prose are stripped.
schemaobjectJaJSON Schema to validate against.
all_errorsbooleanNeinReport every violation instead of stopping at the first.
suggest_repairsbooleanNeinList repairable problems (defaultable missing fields, extra fields).
Vollständiges Eingabeschema anzeigen
{
  "type": "object",
  "required": [
    "schema"
  ],
  "additionalProperties": false,
  "properties": {
    "output": {
      "description": "The model answer, as a parsed JSON value. Either this or output_text."
    },
    "output_text": {
      "type": "string",
      "maxLength": 400000,
      "description": "The raw answer as text. Code fences and surrounding prose are stripped."
    },
    "schema": {
      "type": "object",
      "description": "JSON Schema to validate against."
    },
    "all_errors": {
      "type": "boolean",
      "default": true,
      "description": "Report every violation instead of stopping at the first."
    },
    "suggest_repairs": {
      "type": "boolean",
      "default": true,
      "description": "List repairable problems (defaultable missing fields, extra fields)."
    }
  }
}

Originalschema öffnen

Veröffentlichtes Eingabebeispiel

{
  "schema": {},
  "all_errors": true,
  "suggest_repairs": true
}

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 →