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
Describe the bug SwaggerBake.beforeRender event is not allowing modification of the Swagger::array
To Reproduce
EventManager::instance() ->on('SwaggerBake.beforeRender', function (Event $event) { /** @var Swagger $swagger */ $swagger = $event->getSubject(); $openApi = $swagger->getArray(); $openApi['info']['description'].= ' This is sentence was added via the SwaggerBake.beforeRender event'; $swagger->setArray($openApi); return $swagger; });
Expected behavior Can modify array
Version and Platform (please complete the following information):
The text was updated successfully, but these errors were encountered:
Fixes bug with using SwaggerBake.beforeRender #202
dd00081
Moves event trigger into toString and provides setArray. Adds better examples to readme.
Merge pull request #203 from cnizzardini/bug/202-before-render-event
cbff9fd
cnizzardini
No branches or pull requests
Describe the bug
SwaggerBake.beforeRender event is not allowing modification of the Swagger::array
To Reproduce
Expected behavior
Can modify array
Version and Platform (please complete the following information):
The text was updated successfully, but these errors were encountered: