Skip to content

Commit d25810c

Browse files
Merge pull request #1544 from DarkChyper/patch-2
Update filters.md
2 parents 9a28c90 + 27c3040 commit d25810c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

core/filters.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1215,10 +1215,12 @@ final class RegexpFilter extends AbstractContextAwareFilter
12151215
'property' => $property,
12161216
'type' => Type::BUILTIN_TYPE_STRING,
12171217
'required' => false,
1218-
'swagger' => [
1219-
'description' => 'Filter using a regex. This will appear in the Swagger documentation!',
1220-
'name' => 'Custom name to use in the Swagger documentation',
1221-
'type' => 'Will appear below the name in the Swagger documentation',
1218+
'description' => 'Filter using a regex. This will appear in the OpenApi documentation!',
1219+
'openapi' => [
1220+
'example' => 'Custom example that will be in the documentation and be the default value of the sandbox',
1221+
'allowReserved' => false,// if true, query parameters will be not percent-encoded
1222+
'allowEmptyValue' => true,
1223+
'explode' => false, // to be true, the type must be Type::BUILTIN_TYPE_ARRAY, ?product=blue,green will be ?product=blue&product=green
12221224
],
12231225
];
12241226
}

0 commit comments

Comments
 (0)