I'm trying to build an OAPI definition where I split shared data into separate files. I'm only using json format as of now. One example would be doing something like this:
When attempting to do this, it seems this package formats the URI to become file://401.json. This causes the parser to fail. The stack trace looks like this:
cebe\openapi\exceptions\UnresolvableReferenceException : Failed to resolve Reference './401.json' to cebe\openapi\spec\Response Object: file_get_contents(file:///401.json): Failed to open stream: No such file or directory
vendor/cebe/php-openapi/src/spec/Reference.php:220
vendor/cebe/php-openapi/src/spec/Responses.php:244
vendor/cebe/php-openapi/src/SpecBaseObject.php:410
vendor/cebe/php-openapi/src/SpecBaseObject.php:410
vendor/cebe/php-openapi/src/spec/PathItem.php:200
Hi!
I'm trying to build an OAPI definition where I split shared data into separate files. I'm only using json format as of now. One example would be doing something like this:
and the 401 file would contain the actual details:
When attempting to do this, it seems this package formats the URI to become
file://401.json
. This causes the parser to fail. The stack trace looks like this:I'm on a Mac. Any ideas?