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
Currently, only optional params are exposed when looking at a service.
Example:
It'd be awesome to add support for non-optional params
In Service.php, in the toArray() method, this is happening:
Service.php
toArray()
$routeWithReplacements = str_replace(['[', ']', '{/', '{:'], ['{', '}', '/{', '{'], $service->route);
Changing it to:
$routeWithReplacements = preg_replace('#\[?\/:(\w+)\]?#', '/{$1}', $service->route);
will give the results I'd like to see.
If this change is acceptable, I can go ahead and make a PR, otherwise, I'm open to hearing other ideas to add support for this.
Originally posted by @stringerbell at zfcampus/zf-apigility-documentation-swagger#17
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Currently, only optional params are exposed when looking at a service.
Example:
It'd be awesome to add support for non-optional params
Example:
In
Service.php
, in thetoArray()
method, this is happening:$routeWithReplacements = str_replace(['[', ']', '{/', '{:'], ['{', '}', '/{', '{'], $service->route);
Changing it to:
$routeWithReplacements = preg_replace('#\[?\/:(\w+)\]?#', '/{$1}', $service->route);
will give the results I'd like to see.
If this change is acceptable, I can go ahead and make a PR, otherwise, I'm open to hearing other ideas to add support for this.
Originally posted by @stringerbell at zfcampus/zf-apigility-documentation-swagger#17
The text was updated successfully, but these errors were encountered: