Skip to content

Fix schema and add drift test#1624

Merged
dgageot merged 1 commit intodocker:mainfrom
dgageot:schema
Feb 7, 2026
Merged

Fix schema and add drift test#1624
dgageot merged 1 commit intodocker:mainfrom
dgageot:schema

Conversation

@dgageot
Copy link
Member

@dgageot dgageot commented Feb 6, 2026

No description provided.

@dgageot dgageot requested a review from a team as a code owner February 6, 2026 15:24
github-actions[bot]
github-actions bot previously approved these changes Feb 6, 2026
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.

Code Review Summary

No issues found!

This PR successfully adds new schema properties and implements a comprehensive drift detection test. All changes are correct:

Schema Updates

  • Added add_description_parameter and skills boolean fields to AgentConfig - match Go struct ✓
  • Added description and version string fields to Metadata - match Go struct ✓

New Test File

  • TestSchemaMatchesGoTypes provides excellent protection against schema/code drift
  • Proper handling of top-level definitions, inline schemas, and $refs
  • Edge cases properly covered with require checks
  • Test passes successfully ✓

The test is well-structured and will help prevent future schema inconsistencies. Great work!

Signed-off-by: David Gageot <david.gageot@docker.com>
Copy link
Contributor

@krissetto krissetto left a comment

Choose a reason for hiding this comment

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

fancy, me like

@dgageot dgageot merged commit 57ab589 into docker:main Feb 7, 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