← Findings
MediumTool useReviewer-confirmedPublished

Format-constraint violations under strict schemas

Asked for strictly-formatted output (e.g. JSON to a schema), models emit invalid or extra content.

Published June 26, 2026

Reproducibility
Sometimes
Severity
Medium
Confidence
Reviewer-confirmed

Details

Under strict structured-output requirements, models add prose, omit required fields, or produce malformed JSON, especially as schema complexity grows. A core reliability issue for tool/function calling and pipelines.

Found with

Evidence

Requested pure JSON; output wrapped in ```json fences with a trailing comment, breaking parsers.
Illustrative example — see the linked reference for the documented evidence.

Affected versions

OpenAI · gpt-4oGoogle · gemini-2.0-flashMeta · llama-3.3-70bMistral · mistral-large-2

References

Source: https://arxiv.org/abs/2408.02442

Cite this

Qlarify Labs. (2026). Format-constraint violations under strict schemas. Retrieved from https://labs.qlarify.fi/findings/strict-json-violations