We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jane version(s) affected: v7.6.0
Description All endpoint uri's are generated with / prefix (relative to the root), and it breaks OAS3.0 specification
/
All API endpoints are relative to the base URL
At the end final uri is generated by the RFC 3986, section 5.2
So it is impossible to have a server.url value with path in it. Only first two options are possible from the example.
Hence by the applying changes, 3rd and 4th option will be possible allowing more flexibility and following the OAS3.0 specification.
How to reproduce
openapi: 3.0.1 info: title: exmaple version: 1.0.0 servers: - url: https://server.localhost/api/v3 paths: /users: get: summary: Get users responses: '200': description: Successful operation content: application/json: {}
Possible Solution Trim leading / from path value. Update Generator class Jane\Component\OpenApiCommon\Guesser\Guess\OperationGuess
Jane\Component\OpenApiCommon\Guesser\Guess\OperationGuess
$this->path = ltrim($path, '/');
Additional context
The text was updated successfully, but these errors were encountered:
Trim leading slash in path value in OperationGuess.php
e2ca2da
Suggested fix for janephp#789
No branches or pull requests
Jane version(s) affected: v7.6.0
Description
All endpoint uri's are generated with
/
prefix (relative to the root), and it breaks OAS3.0 specificationAt the end final uri is generated by the RFC 3986, section 5.2
So it is impossible to have a server.url value with path in it. Only first two options are possible from the example.
Hence by the applying changes, 3rd and 4th option will be possible allowing more flexibility and following the OAS3.0 specification.
How to reproduce
Possible Solution
Trim leading
/
from path value.Update Generator class
Jane\Component\OpenApiCommon\Guesser\Guess\OperationGuess
Additional context
The text was updated successfully, but these errors were encountered: