Skip to content

Commit e651ec6

Browse files
authored
Merge pull request #322 from greg0ire/document_swagger_options
Document Swagger-specific options
2 parents 99e8caa + f4e5ba2 commit e651ec6

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)