Repository navigation
fix(client): align structured output validation with API limits - #1001
LittleYier wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
🟢 Approval recommended
The API-aligned limits and corresponding tests are updated with no unresolved issues.
Pull request overview
Updates Structured Outputs schema validation limits to match current API constraints while preserving nesting limits.
Changes:
- Raises string, property, enum, and large-enum limits.
- Updates boundary tests and expected validation errors.
File summaries
| File | Description |
|---|---|
openai-java-core/src/test/kotlin/com/openai/core/StructuredOutputsTest.kt |
Adjusts boundary and overflow tests. |
openai-java-core/src/main/kotlin/com/openai/core/JsonSchemaValidator.kt |
Updates validation caps and documentation. |
Review details
- Files reviewed: 2/2 changed files
- Comments generated: 0
- Review effort level: Lite
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
Castiron custom codeEvaluated main: ✅ No new custom-code files detected. 70 mixed files remain; 0 existing customizations changed. Compared 70 existing customizations unchanged
30 more in the full report. A changed generated baseline means this report cannot reliably identify which handwritten lines changed. Inspect the custom-code diffDownload the exact patch produced by this run (requires repository access): gh run download 38573280498 --repo openai/openai-java \
--name castiron-custom-code-38573280498-1 --dir /tmp/castiron-custom-code-38573280498-1
git apply --stat /tmp/castiron-custom-code-38573280498-1/custom-code.patch
cat /tmp/castiron-custom-code-38573280498-1/custom-code.patchOr reproduce it from an SDK checkout containing the vendored reporter: git fetch --no-tags origin 7d9e8affcc7ec40553c9482ede8f63d529fead3e 6b6ef38cc856e79bbec806eecdd3d43a091ca2d9
python3 scripts/castiron/custom_code_report.py report \
--base 7d9e8affcc7ec40553c9482ede8f63d529fead3e \
--head 6b6ef38cc856e79bbec806eecdd3d43a091ca2d9 --fetch --require-head-hash --public \
--out /tmp/castiron-custom-code-6b6ef38cc856
cat /tmp/castiron-custom-code-6b6ef38cc856/custom-code.patchThis is the current full custom patch for mixed files, not an attribution of only the handwritten lines changed by this PR. |
Local schema validation limits are outdated compared to the current API.
Updated the caps to match the Structured Outputs guide. Nesting limits stay as-is from #733. Added tests.