registry/internal/validators
Repository files (latest commit first)
Filename Latest commit message Latest commit date
adam jones e9884c1d7b
Improve stdio transport validation and function naming (#365)
## Summary
- Add validation that URL must be empty for stdio transport types
- Rename `validateTransport` to `validateRemoteTransport` for better
clarity
- Update corresponding test case to expect error when stdio transport
has URL

## Context
This addresses two specific feedback comments from @domdomegg on PR
#345:
1. "do we want to validate the the url _is_ empty?" - Now validates URL
is empty for stdio
2. "maybe rename validateRemoteTransport or something?" - Renamed
function for clarity

The changes enforce stricter validation while improving code readability
through better naming.
2025-09-06 00:51:23 +01:00
..
registries Add registry validators (#350) 2025-09-04 22:45:59 +01:00
constants.go Add optional subfolder field to Repository schema (#363) 2025-09-05 21:29:09 +01: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 Improve stdio transport validation and function naming (#365) 2025-09-06 00:51:23 +01:00
validators_test.go Improve stdio transport validation and function naming (#365) 2025-09-06 00:51:23 +01:00