Closed il-m-yamagishi closed 3 years ago
I'm hoping this does make its was into the main branch sometime soon. I'm trying to do local references like:
"parameters": [
{
"$ref": "../../parameters.json#/EmailAddress"
},
{
"$ref": "../../parameters.json#/LaunchpadCodeInQuery"
}
],
and without this fix is fails to resolve the path correctly, but with this PR is works perfectly. Thanks for the fix @il-m-yamagishi
This is workaround until the PR will be merged.
$ composer require cweagans/composer-patches
And add to composer.json
{
"extra": {
"patches": {
"cebe/php-openapi": {
"Workaround cebe/php-openapi#94": "https://patch-diff.githubusercontent.com/raw/cebe/php-openapi/pull/99.patch"
}
}
}
}
So patch will be executed when use composer install
.
$ composer install
...
Gathering patches for root package.
Gathering patches for dependencies. This might take a minute.
- Installing cebe/php-openapi (1.5.0): Extracting archive
- Applying patches for cebe/php-openapi
https://patch-diff.githubusercontent.com/raw/cebe/php-openapi/pull/99.patch (Workaround cebe/php-openapi#94)
...
https://github.com/vaimo/composer-patches has not compatible with composer v2 so I use cweagans/composer-patches instead.
I just release version 1.5.1 which includes this fix.
Thank you for the great library.
I found to occur ErrorException when
..
repeatedly appeared in path atReferenceContext::reduceDots
. PHP 8.0.0.