fix. Enforce strict codex output schema
This commit is contained in:
@@ -26,7 +26,7 @@ logger = logging.getLogger(__name__)
|
||||
|
||||
REVIEW_RESULT_SCHEMA: dict[str, Any] = {
|
||||
"type": "object",
|
||||
"additionalProperties": True,
|
||||
"additionalProperties": False,
|
||||
"required": ["verdict", "confidence", "summary", "findings", "markdown_comment"],
|
||||
"properties": {
|
||||
"verdict": {"type": "string", "enum": ["correct", "has_issues"]},
|
||||
@@ -37,7 +37,7 @@ REVIEW_RESULT_SCHEMA: dict[str, Any] = {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"additionalProperties": True,
|
||||
"additionalProperties": False,
|
||||
"required": ["severity", "file", "line_start", "line_end", "title", "body"],
|
||||
"properties": {
|
||||
"severity": {"type": "string", "enum": ["low", "medium", "high", "critical"]},
|
||||
|
||||
Reference in New Issue
Block a user