php-sdk/tests
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dayna Blackwell 797472777f
[Schema] fix: allow URIs without double slash in Resource and ResourceTemplate (RFC 3986) (#297)
* fix: allow URIs without double slash in Resource and ResourceTemplate (RFC 3986)

The URI regex required "://" after the scheme, rejecting valid URIs
like urn:isbn:123, mailto:user@example.com, config:key, and data:
URIs. RFC 3986 only requires ":" after the scheme; the "//" is part
of the authority component which is optional.

Changed both Resource.URI_PATTERN and ResourceTemplate.URI_TEMPLATE_PATTERN
to require ":" instead of "://".

Adds data-provider tests for URIs without double slash in both classes.

Fixes #293

* Reword unit tests

---------

Co-authored-by: Christopher Hertel <mail@christopher-hertel.de>
2026-05-08 10:14:08 +02:00
..
Conformance [Schema][Server] Add top-level title to Tool (#288) 2026-04-26 15:37:40 +02:00
Inspector [Server] Use getDescription to get all descriptions. (#188) 2026-01-11 22:08:05 +01:00
Unit [Schema] fix: allow URIs without double slash in Resource and ResourceTemplate (RFC 3986) (#297) 2026-05-08 10:14:08 +02:00