Skip to content

feat: validate template structure before marketplace publish#1

Open
codedmalik wants to merge 1 commit into
masterfrom
feat/template-validation
Open

feat: validate template structure before marketplace publish#1
codedmalik wants to merge 1 commit into
masterfrom
feat/template-validation

Conversation

@codedmalik
Copy link
Copy Markdown
Owner

Summary

Validates templates before they are submitted to the marketplace to prevent broken or incomplete templates.

Changes

  • Expanded validate_template_structure to check metadata completeness (name, description, author, version), required files (Cargo.toml, src/lib.rs), and {{PROJECT_NAME}} placeholder
  • Validation runs inside publish_template before any files are copied or registry is updated
  • Added 5 tests covering all rejection paths and the happy path

Acceptance Criteria

  • ✅ Invalid templates are rejected before publication
  • ✅ Marketplace metadata is consistent and trustworthy
  • ✅ Contributors receive clear validation feedback

- Expand validate_template_structure to check metadata completeness
  (name, description, author, version), required files (Cargo.toml,
  src/lib.rs), and {{PROJECT_NAME}} placeholder in Cargo.toml
- Call validation in publish_template before any files are copied
- Add 5 tests covering all rejection paths and the happy path
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