Skip to content

Commit c93c35c

Browse files
authored
Extends filter interface description with swagger options
It took me some time to figure out how to provide a description for a parameter, so I thought it might be useful to add this to the comment.
1 parent 42e6b08 commit c93c35c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Api/FilterInterface.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ interface FilterInterface
2626
* - type: the type of the filter
2727
* - required: if this filter is required
2828
* - strategy: the used strategy
29+
* - swagger (optional): additional parameters for the path operation, e.g. 'swagger' => ['description' => 'My Description']
2930
* The description can contain additional data specific to a filter.
3031
*
3132
* @param string $resourceClass

0 commit comments

Comments
 (0)