Skip to content

Comments

Fix second-opinion schema validation and update Gemini to 3.1#103

Merged
dguido merged 1 commit intomainfrom
fix/second-opinion-schema-and-gemini-model
Feb 20, 2026
Merged

Fix second-opinion schema validation and update Gemini to 3.1#103
dguido merged 1 commit intomainfrom
fix/second-opinion-schema-and-gemini-model

Conversation

@dguido
Copy link
Member

@dguido dguido commented Feb 20, 2026

Summary

  • Fix codex-review-schema.json failing OpenAI structured output validation — required arrays now include all sibling property keys as mandated when additionalProperties: false is set. Optional fields (confidence_score, code_location, line_range, overall_explanation) are made nullable so they can return null instead of being omitted.
  • Update Gemini model from gemini-3-pro-preview to gemini-3.1-pro-preview following the Feb 19 release.
  • Bump version 1.5.0 → 1.5.1.

Test plan

  • Run codex exec --output-schema codex-review-schema.json against gpt-5.3-codex — should no longer fail with invalid_json_schema
  • Run a Gemini review via /second-opinion — confirm it invokes gemini-3.1-pro-preview
  • Validate JSON schema parses correctly: python -c "import json; json.load(open('plugins/second-opinion/skills/second-opinion/references/codex-review-schema.json'))"

🤖 Generated with Claude Code

codex-review-schema.json failed OpenAI structured output validation
because required arrays didn't include all sibling property keys when
additionalProperties: false was set. Made optional fields nullable
and added them to required to satisfy the constraint.

Update Gemini model from gemini-3-pro-preview to gemini-3.1-pro-preview
following the Feb 19 release.

Bump version 1.5.0 → 1.5.1.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@dguido dguido merged commit 60ab7b0 into main Feb 20, 2026
6 checks passed
@dguido dguido deleted the fix/second-opinion-schema-and-gemini-model branch February 20, 2026 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant