registry/internal/api/handlers/v0
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Radoslav Dimitrov 068a97a2f8
fix: identify submitted server version in publish diagnostics (#1621)
Publishing a manifest with a stale version currently produces a
duplicate-version error without identifying the version that was
submitted. This made a request containing `0.4.5` look like a rejected
publication of `0.4.6` in #1615.

Include the submitted `name@version` in the CLI output before sending
the request and in the API duplicate-version error. HTTP 400, the
response structure, and duplicate-rejection behavior remain unchanged.
The service wraps the existing error sentinel so `errors.Is` continues
to work.

Adds a CLI regression test for a failed publication and updates the API
duplicate-error assertion.

Validation:
- Publish command tests passed (`go test ./cmd/publisher/commands -run
TestPublishCommand -count=1`).
- `git diff --check` passed.
- API endpoint tests were attempted but could not run because PostgreSQL
was unavailable on localhost:5432; Docker was also unavailable locally.

Related to #1615.
2026-09-06 00:18:27 +03:00
..
auth ci: bump golangci-lint to v2.13.1 to fix panic on Go 1.27 (#1561) 2026-08-21 00:14:13 +03:00
edit.go ci: bump golangci-lint to v2.13.1 to fix panic on Go 1.27 (#1561) 2026-08-21 00:14:13 +03:00
edit_test.go Publisher-managed "deleted" support (#893) 2026-02-27 09:00:07 -08:00
health.go Replace / with - for operation IDs (#660) 2025-10-14 15:26:43 +03:00
health_test.go Introduce v0.1 version of the API (#658) 2025-10-14 11:04:48 +03:00
list_errors.go fix: don't leak internal error detail in GET /v0/servers 500 response (#1338) 2026-06-05 03:08:33 -04:00
list_errors_test.go fix: don't leak internal error detail in GET /v0/servers 500 response (#1338) 2026-06-05 03:08:33 -04:00
openapi.go ci: bump golangci-lint to v2.13.1 to fix panic on Go 1.27 (#1561) 2026-08-21 00:14:13 +03:00
ping.go Replace / with - for operation IDs (#660) 2025-10-14 15:26:43 +03:00
ping_test.go Introduce v0.1 version of the API (#658) 2025-10-14 11:04:48 +03:00
publish.go ci: bump golangci-lint to v2.13.1 to fix panic on Go 1.27 (#1561) 2026-08-21 00:14:13 +03:00
publish_integration_test.go Make Repository field properly optional in server.json (#717) 2025-10-29 13:23:47 +00:00
publish_registry_validation_test.go Introduce v0.1 version of the API (#658) 2025-10-14 11:04:48 +03:00
publish_test.go fix: identify submitted server version in publish diagnostics (#1621) 2026-09-06 00:18:27 +03:00
response.go auth: New auth flow (#273) 2025-08-15 13:03:35 +01:00
servers.go ci: bump golangci-lint to v2.13.1 to fix panic on Go 1.27 (#1561) 2026-08-21 00:14:13 +03:00
servers_test.go Publisher-managed "deleted" support (#893) 2026-02-27 09:00:07 -08:00
status.go ci: bump golangci-lint to v2.13.1 to fix panic on Go 1.27 (#1561) 2026-08-21 00:14:13 +03:00
status_test.go Publisher-managed "deleted" support (#893) 2026-02-27 09:00:07 -08:00
telemetry_test.go Make Repository field properly optional in server.json (#717) 2025-10-29 13:23:47 +00:00
ui.go Add simple web UI for browsing the registry (#757) 2025-11-10 12:37:36 +00:00
ui_index.html fix(ui): encode publisher-controlled URLs for href attribute context (#1248) 2026-05-04 09:25:41 -04:00
validate.go Added /validate endpoint and modified mcp-publish so that all validation happens there (#896) 2026-02-04 15:52:07 +02:00
validate_test.go Added /validate endpoint and modified mcp-publish so that all validation happens there (#896) 2026-02-04 15:52:07 +02:00
version.go Introduce a /version API (#667) 2025-10-15 17:24:46 +03:00
version_test.go Introduce a /version API (#667) 2025-10-15 17:24:46 +03:00