Skip to content

Commit

Permalink
Merge pull request #59 from RonasIT/49_update_description_generating_…
Browse files Browse the repository at this point in the history
…logic

#49:- fix: fix display rules;
  • Loading branch information
DenTray committed Sep 14, 2022
2 parents 22626ad + 6bfb3d0 commit 8ff60a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Services/SwaggerService.php
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ protected function saveDefinitions($objectName, $rules, $attributes, array $anno
$data['required'][] = $parameter;
}

$rulesArray = array_diff_key(array_flip($rulesArray), $uselessRules);
$rulesArray = array_flip(array_diff_key(array_flip($rulesArray), $uselessRules));

$this->saveParameterDescription($data, $parameter, $rulesArray, $attributes, $annotations);
}
Expand Down

0 comments on commit 8ff60a5

Please sign in to comment.