diff --git a/rest/python/server/integration_test.py b/rest/python/server/integration_test.py index 88de62d..485abd0 100644 --- a/rest/python/server/integration_test.py +++ b/rest/python/server/integration_test.py @@ -1314,6 +1314,18 @@ def test_profile_publishes_the_webhook_signing_key(self) -> None: self.assertIn(jwk, profile.get("signing_keys", [])) self.assertIn(jwk, profile.get("ucp", {}).get("keys", [])) + def test_profile_publishes_rest_service_schema(self) -> None: + """The REST service points to the published OpenAPI document.""" + with self.client: + profile = self.client.get("/.well-known/ucp").json() + + service = profile["ucp"]["services"]["dev.ucp.shopping"][0] + version = profile["ucp"]["version"] + self.assertEqual( + service["schema"], + f"https://ucp.dev/{version}/services/shopping/rest.openapi.json", + ) + def test_version_invalid_format(self) -> None: """Tests that UCP-Agent with invalid version format is rejected.""" with self.client: diff --git a/rest/python/server/routes/discovery_profile.json b/rest/python/server/routes/discovery_profile.json index 5c031fe..e0cf122 100644 --- a/rest/python/server/routes/discovery_profile.json +++ b/rest/python/server/routes/discovery_profile.json @@ -8,7 +8,7 @@ "spec": "https://ucp.dev/2026-04-08/specification/overview", "transport": "rest", "endpoint": "{{ENDPOINT}}", - "schema": "https://ucp.dev/2026-04-08/services/shopping/openapi.json" + "schema": "https://ucp.dev/2026-04-08/services/shopping/rest.openapi.json" } ] },