Skip to content

Comments

feat: add validation for discovery profile URLs#8

Merged
damaz91 merged 2 commits intoUniversal-Commerce-Protocol:mainfrom
0x8000-0000:features
Jan 21, 2026
Merged

feat: add validation for discovery profile URLs#8
damaz91 merged 2 commits intoUniversal-Commerce-Protocol:mainfrom
0x8000-0000:features

Conversation

@0x8000-0000
Copy link
Contributor

Enhances the protocol conformance tests to verify that all documentation and schema URLs provided in the UCP discovery profile are reachable and return valid content.

  • Added test_discovery_urls to ProtocolTest.
  • Implemented _extract_document_urls helper to collect URLs with their JSON paths for better debugging.
  • Validates that spec, schema, config_schema, and instrument_schemas fields return 200 OK.
  • Checks content type validity (parseable JSON or valid HTML).
  • Reports all broken links in a single failure message with their exact location in the discovery profile.

Enhances the protocol conformance tests to verify that all documentation
and schema URLs provided in the UCP discovery profile are reachable and
return valid content.

- Added `test_discovery_urls` to `ProtocolTest`.
- Implemented `_extract_document_urls` helper to collect URLs with their
  JSON paths for better debugging.
- Validates that `spec`, `schema`, `config_schema`, and `instrument_schemas`
  fields return 200 OK.
- Checks content type validity (parseable JSON or valid HTML).
- Reports all broken links in a single failure message with their exact
  location in the discovery profile.
@0x8000-0000 0x8000-0000 requested a review from a team January 15, 2026 22:22
@0x8000-0000
Copy link
Contributor Author

Fixes #7

@damaz91 damaz91 self-assigned this Jan 21, 2026
@damaz91 damaz91 merged commit 24928f7 into Universal-Commerce-Protocol:main Jan 21, 2026
4 of 5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants