[Sprint 7] feat: add model field validation to marketplace script #308

Merged
lmiranda merged 1 commits from feat/306-model-validation into development 2026-01-29 02:56:25 +00:00
Owner

Summary

  • Add validation for defaultModel field in plugin.json
  • Add validation for model field in agent markdown frontmatter
  • Both must be one of: opus, sonnet, haiku
  • Fields are optional - validation only errors on invalid values

Test Plan

  • Run ./scripts/validate-marketplace.sh - passes
  • Test with invalid model value - should fail

Fixes #306

🤖 Generated with Claude Code

## Summary - Add validation for `defaultModel` field in plugin.json - Add validation for `model` field in agent markdown frontmatter - Both must be one of: `opus`, `sonnet`, `haiku` - Fields are optional - validation only errors on invalid values ## Test Plan - [x] Run `./scripts/validate-marketplace.sh` - passes - [ ] Test with invalid model value - should fail Fixes #306 🤖 Generated with [Claude Code](https://claude.ai/code)
lmiranda added 1 commit 2026-01-29 02:55:29 +00:00
Add validation for:
- defaultModel field in plugin.json (must be opus|sonnet|haiku)
- model field in agent frontmatter (must be opus|sonnet|haiku)

The validation passes when fields are absent (optional) but errors
if present with invalid values.

Fixes #306

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
lmiranda merged commit 50951378f7 into development 2026-01-29 02:56:25 +00:00
lmiranda deleted branch feat/306-model-validation 2026-01-29 02:56:25 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: personal-projects/leo-claude-mktplace#308