You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FEATURE]: schema-constrained structured outputs (JSON Schema), similar to Codex #10456
I have verified this feature I'm about to request hasn't been suggested before.
Describe the enhancement you want to request
OpenCode currently supports JSON-formatted output, but there is no way to enforce conformance to a user-supplied schema (e.g. JSON Schema).
For CI and automation use cases (code review bots, PR comments, policy checks), best-effort JSON is not sufficient. Outputs need to be schema-constrained and deterministic, or the run should fail clearly.
OpenAI Codex provides this via Structured Outputs (JSON Schema), as shown in the Codex CI/code-review guide:
Activity
github-actions commentedon Jan 24, 2026
This issue might be a duplicate of existing issues. Please check:
Feel free to ignore if none of these address your specific case.
siggi84 commentedon Jan 24, 2026
I see now that this might be covered by this issue and pr: #9320
github-actions commentedon Mar 27, 2026
To stay organized issues are automatically closed after 90 days of no activity. If the issue is still relevant please open a new one.
roadmap: #218 filed — MessageRequest has no response_format / output_…
roadmap: #218 filed — MessageRequest has no response_format / output_…
roadmap: ultraworkers#218 filed — MessageRequest has no response_form…
roadmap: #218 filed — MessageRequest has no response_format / output_…
roadmap: #218 filed — MessageRequest has no response_format / output_…
roadmap: #218 filed — MessageRequest has no response_format / output_…
roadmap: #218 filed — MessageRequest has no response_format / output_…
roadmap: ultraworkers#218 filed — MessageRequest has no response_form…