We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 877c825 commit b555164Copy full SHA for b555164
core/swagger.md
@@ -54,7 +54,12 @@ final class SwaggerDecorator implements NormalizerInterface
54
55
// e.g. add a custom parameter
56
$docs['paths']['/foos']['get']['parameters'][] = $customDefinition;
57
-
+
58
+ // e.g. remove an existing parameter
59
+ $docs['paths']['/foos']['get']['parameters'] = array_values(array_filter($docs['paths']['/foos']['get']['parameters'], function ($param){
60
+ return $param['name'] !== 'bar';
61
+ }));
62
63
// Override title
64
$docs['info']['title'] = 'My Api Foo';
65
0 commit comments