Skip to content

Commit f4e5ba2

Browse files
committed
Document Swagger-specific options
1 parent 99e8caa commit f4e5ba2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

core/filters.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -634,7 +634,11 @@ final class RegexpFilter extends AbstractFilter
634634
'property' => $property,
635635
'type' => 'string',
636636
'required' => false,
637-
'swagger' => ['description' => 'Filter using a regex. This will appear in the Swagger documentation!'],
637+
'swagger' => [
638+
'description' => 'Filter using a regex. This will appear in the Swagger documentation!',
639+
'name' => 'Custom name to use in the Swagger documentation',
640+
'type' => 'Will appear below the name in the Swagger documentation',
641+
],
638642
];
639643
}
640644

0 commit comments

Comments
 (0)