Skip to content

Commit

Permalink
feat(laravel): eloquent filters date range (#6606)
Browse files Browse the repository at this point in the history
* feat(laravel): eloquent filters date range

* cs

* parameter

* fix(laravel): eloquent test

* fix test

* fix(laravel): corrections

* fix(larevel): eloquent test filters

* fix(laravel): date filter const

* fix(laravel): range filter const

---------

Co-authored-by: Nathan <[email protected]>
Co-authored-by: soyuka <[email protected]>
  • Loading branch information
3 people authored Sep 11, 2024
1 parent 98a3b69 commit cca3d86
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Filter/PropertyFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@

namespace ApiPlatform\Serializer\Filter;

use ApiPlatform\Metadata\HasOpenApiParameterFilterInterface;
use ApiPlatform\Metadata\HasSchemaFilterInterface;
use ApiPlatform\Metadata\JsonSchemaFilterInterface;
use ApiPlatform\Metadata\OpenApiParameterFilterInterface;
use ApiPlatform\Metadata\Parameter as MetadataParameter;
use ApiPlatform\Metadata\QueryParameter;
use ApiPlatform\OpenApi\Model\Parameter;
Expand Down Expand Up @@ -118,7 +118,7 @@
*
* @author Baptiste Meyer <[email protected]>
*/
final class PropertyFilter implements FilterInterface, HasOpenApiParameterFilterInterface, HasSchemaFilterInterface
final class PropertyFilter implements FilterInterface, OpenApiParameterFilterInterface, JsonSchemaFilterInterface
{
private ?array $whitelist;

Expand Down Expand Up @@ -277,7 +277,7 @@ public function getSchema(MetadataParameter $parameter): array
];
}

public function getOpenApiParameter(MetadataParameter $parameter): Parameter
public function getOpenApiParameters(MetadataParameter $parameter): Parameter|array|null
{
$example = \sprintf(
'%1$s[]={propertyName}&%1$s[]={anotherPropertyName}',
Expand Down

0 comments on commit cca3d86

Please sign in to comment.