php-sdk/tests/Unit
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
..
Capability [Server] Allow overriding the default file name pattern for Discovery (#292) 2026-05-08 09:48:29 +02:00
Fixtures/Enum Split testsuite for unit and inspector based tests (#82) 2025-09-25 22:27:41 +01:00
JsonRpc [Server] Add Bidirectional Client Communication Support (#109) 2025-10-26 22:48:17 +01:00
Schema [Schema] fix: allow URIs without double slash in Resource and ResourceTemplate (RFC 3986) (#297) 2026-05-08 10:14:08 +02:00
Server [Schema][Server] Add top-level title to Tool (#288) 2026-04-26 15:37:40 +02:00
ServerTest.php Update codestyle based on updated Symfony rules (#229) 2026-02-01 11:54:31 +01:00