Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions rest/python/server/integration_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion rest/python/server/routes/discovery_profile.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
},
Expand Down
Loading