registry/internal/validators
Repository files (latest commit first)
Filename Latest commit message Latest commit date
adam jones 41aacc1846
Ban 'latest' as a reserved version string (#413)
## Summary
- Adds validation to prevent servers from being published with version
string "latest"
- "latest" is now a reserved keyword that cannot be used as a version
string

## Implementation
- Added `ErrReservedVersionString` error constant
- Created `validateVersion` function to check for reserved version
strings
- Integrated validation into the package field validation flow
- Added comprehensive test coverage

---

This is so we can potentially support things like
https://github.com/modelcontextprotocol/registry/discussions/333 in
future more easily, as I imagine we might want to.
2025-09-10 17:52:08 +00:00
..
registries Enforce and document file hash requirement for MCPB packages (#368) 2025-09-08 11:38:25 -07:00
constants.go Ban 'latest' as a reserved version string (#413) 2025-09-10 17:52:08 +00:00
package.go Add registry validators (#350) 2025-09-04 22:45:59 +01:00
utils.go Add optional subfolder field to Repository schema (#363) 2025-09-05 21:29:09 +01:00
validators.go Ban 'latest' as a reserved version string (#413) 2025-09-10 17:52:08 +00:00
validators_test.go Ban 'latest' as a reserved version string (#413) 2025-09-10 17:52:08 +00:00