Im using API Platform and I have defined a custom filter following <https://api-platform.com/docs/core/filters/#creating-custom-filters>

It works ok, but **I need to that filter is required everytime that application do a GET HTTP Request of particular entity (where the filter is set).**

I have check this code:

```
// This function is only used to hook in documentation generators (supported by Swagger and Hydra)
public function getDescription(string $resourceClass): array
{
    if (!$this->properties) {
        return [];
    }

    $description = [];
    foreach ($this->properties as $property => $strategy) {
        $description["similar_$property"] = [
            'property' => $property,
            'type' => 'string',
            'required' => false,
            'swagger' => [
                'description' => 'Filter using a similar postgres function.',
                'name' => $property,
                'type' => 'string',
            ],
        ];
    }

    return $description;
}

```

Although getDescription has a required field, it only works for api documentation and not for HTTP Request