-
Notifications
You must be signed in to change notification settings - Fork 110
Open
Description
Is your feature request related to a problem? Please describe.
I tried to provide a resource with an invalid URI: /list-books.
I encountered this error:
Invalid resource URI: must be a valid URI with a scheme and optional path.
And the corresponding URI is not shown.
It comes from this line:
php-sdk/src/Schema/Resource.php
Lines 73 to 75 in e485fde
| if (!preg_match(self::URI_PATTERN, $uri)) { | |
| throw new InvalidArgumentException('Invalid resource URI: must be a valid URI with a scheme and optional path.'); | |
| } |
Describe the solution you'd like
The error message may show the invalid data ($uri) to help debugging.
Something like this:
throw new InvalidArgumentException('Invalid resource URI: '.$uri.' must be a valid URI with a scheme and optional path.'); Describe alternatives you've considered
.
Additional context
.
Metadata
Metadata
Assignees
Labels
No labels