Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

Commit

Permalink
Allow to set security via @s2s\SwaggerProperty. Fixes #12 (#13)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerManoMann authored Nov 24, 2017
1 parent 0314943 commit 676a47b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,3 +202,6 @@ For a more complete example have a look at the included Symfony Console command.
### v3.0.1
* Fix bug where controller classes need to be compared using FQCN
* Allow to share parameters and responses within a controller [#9]

### v3.0.2
* Allow to set all public request properties via @S2S\SwaggerProperty [#12]
1 change: 1 addition & 0 deletions src/Swagger/S2SConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,7 @@ protected function migrateRequest(SLX\Request $request, Context $context, array

if ($request instanceof S2S\Request) {
$keys = array_keys(SWG\Operation::$_types);
$keys[] = 'security';
foreach ($request->swaggerProperties as $sp) {
if (in_array($sp->name, $keys)) {
$extras['properties'][$sp->name] = $sp->value;
Expand Down

0 comments on commit 676a47b

Please sign in to comment.