Skip to content

OpenAI doesn't like those format indications on the schema#1650

Merged
dgageot merged 1 commit intodocker:mainfrom
dgageot:fix-mcp-fetch
Feb 9, 2026
Merged

OpenAI doesn't like those format indications on the schema#1650
dgageot merged 1 commit intodocker:mainfrom
dgageot:fix-mcp-fetch

Conversation

@dgageot
Copy link
Member

@dgageot dgageot commented Feb 9, 2026

No description provided.

@dgageot dgageot requested a review from a team as a code owner February 9, 2026 10:32
Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review Summary

Found one potential issue with the removeFormatFields() implementation. The function only removes format fields from top-level properties but doesn't handle nested objects or array items. While current tests don't demonstrate nested schemas with format fields, the implementation is incomplete for deeply nested structures.

Good additions:

  • Clear function documentation explaining why format fields need removal
  • Proper nil and missing properties handling
  • Comprehensive test coverage for flat schemas

⚠️ Consideration:

  • Function doesn't recursively handle nested objects or array items

Signed-off-by: David Gageot <david.gageot@docker.com>
@dgageot dgageot merged commit 65ad207 into docker:main Feb 9, 2026
5 checks passed
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.

2 participants